You are here

function og_update_20 in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.install \og_update_20()
  2. 5.3 og.install \og_update_20()
  3. 5.7 og.install \og_update_20()
  4. 6.2 og.install \og_update_20()
  5. 6 og.install \og_update_20()

File

./og.install, line 430

Code

function og_update_20() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {og} ADD private int(1) NOT NULL default 0");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {og} ADD private smallint NOT NULL default 0");
      break;
  }
  return $ret;
}