function system_update_133 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_133()
File
- database/
updates.inc, line 504
Code
function system_update_133() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("CREATE TABLE {contact} (\n subject varchar(255) NOT NULL default '',\n recipients longtext NOT NULL,\n reply longtext NOT NULL\n )");
$ret[] = update_sql("ALTER TABLE {users} ADD login int(11) NOT NULL default '0'");
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
// Table {contact} is changed in update_143() so I have moved it's creation there.
// It was never created here for postgres because of errors.
db_add_column($ret, 'users', 'login', 'int', array(
'default' => 0,
'not null' => TRUE,
));
}
return $ret;
}