You are here

function og_update_11 in Organic groups 5.8

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

File

./og.install, line 277

Code

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