You are here

function og_update_11 in Organic groups 5.7

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

File

./og.install, line 293

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