function freelinking_update_1 in Freelinking 6.2
Same name and namespace in other branches
- 5 freelinking.install \freelinking_update_1()
- 6 freelinking.install \freelinking_update_1()
File
- ./
freelinking.install, line 27
Code
function freelinking_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('ALTER TABLE {freelinking} DROP PRIMARY KEY');
break;
case 'pgsql':
$ret[] = update_sql('ALTER TABLE {freelinking} DROP CONSTRAINT {freelinking}_pkey');
break;
}
// endswitch on db type
$ret[] = _system_update_utf8(array(
'freelinking',
));
return $ret;
}