system_update_133
modules/system/system.install, строка 1614
- Версии
- 5
system_update_133()
Код
<?php
function system_update_133() {
$ret = array();
if ($GLOBALS['db_type'] == 'mysql') {
$ret[] = update_sql("CREATE TABLE {contact} (
subject varchar(255) NOT NULL default '',
recipients longtext NOT NULL,
reply longtext NOT NULL
)");
$ret[] = update_sql("ALTER TABLE {users} ADD login int 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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии