function system_update_143 in Drupal 5
Same name and namespace in other branches
- 4 database/updates.inc \system_update_143()
File
- modules/
system/ system.install, line 1741
Code
function system_update_143() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("ALTER TABLE {contact} CHANGE subject category VARCHAR(255) NOT NULL ");
$ret[] = update_sql("ALTER TABLE {contact} ADD PRIMARY KEY (category)");
}
elseif ($GLOBALS['db_type'] == 'pgsql') {
// Why the table is created here? See update_133().
$ret[] = update_sql("CREATE TABLE {contact} (\n category varchar(255) NOT NULL default '',\n recipients text NOT NULL default '',\n reply text NOT NULL default '',\n PRIMARY KEY (category))");
}
return $ret;
}