function domain_update_1 in Domain Access 5
Updates from beta6 to beta 7 Adds the valid column to the database.
File
- ./
domain.install, line 79 - Install file.
Code
function domain_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {domain} ADD COLUMN valid varchar(1) NOT NULL DEFAULT 1");
break;
case 'pgsql':
db_add_column($ret, 'domain', 'valid', 'varchar(1)', array(
'not null' => TRUE,
'default' => 1,
));
break;
}
return $ret;
}