function domain_prefix_update_1 in Domain Access 5
Update from beta6 to beta7. Adds the source column to the database.
File
- domain_prefix/
domain_prefix.install, line 65 - Install file for the Domain Prefix module
Code
function domain_prefix_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {domain_prefix} ADD COLUMN source smallint NOT NULL DEFAULT 0");
break;
case 'pgsql':
db_add_column($ret, 'domain_prefix', 'source', 'smallint', array(
'not null' => TRUE,
'default' => 0,
));
break;
}
return $ret;
}