function system_update_1001 in Drupal 5
Related topics
File
- modules/
system/ system.install, line 3104
Code
function system_update_1001() {
// change DB schema for better poll support
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':
// alter poll_votes table
$ret[] = update_sql("ALTER TABLE {poll_votes} ADD COLUMN chorder int NOT NULL default -1 AFTER uid");
break;
case 'pgsql':
db_add_column($ret, 'poll_votes', 'chorder', 'int', array(
'not null' => TRUE,
'default' => "'-1'",
));
break;
}
return $ret;
}