function og_update_11 in Organic groups 5.8
Same name and namespace in other branches
- 5 og.install \og_update_11()
- 5.2 og.install \og_update_11()
- 5.3 og.install \og_update_11()
- 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();
}