You are here

function freelinking_update_1 in Freelinking 6

Same name and namespace in other branches
  1. 5 freelinking.install \freelinking_update_1()
  2. 6.2 freelinking.install \freelinking_update_1()

File

./freelinking.install, line 39

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;
}