You are here

function og_update_4 in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og.install \og_update_4()
  2. 5 og.install \og_update_4()
  3. 5.2 og.install \og_update_4()
  4. 5.7 og.install \og_update_4()

mar 9,2006. unfortunately, we need duplicates so we change primary key to regular INDEX.

File

./og.install, line 171

Code

function og_update_4() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql('ALTER TABLE {node_access} DROP PRIMARY KEY, ADD INDEX nid_gid_realm (nid, gid, realm)');
  }
  return $ret ? $ret : array();
}