function og_update_20 in Organic groups 6.2
Same name and namespace in other branches
- 5.8 og.install \og_update_20()
- 5 og.install \og_update_20()
- 5.3 og.install \og_update_20()
- 5.7 og.install \og_update_20()
- 6 og.install \og_update_20()
File
- ./
og.install, line 282
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;
}