function system_update_155 in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.install \system_update_155()
File
- database/
updates.inc, line 1073
Code
function system_update_155() {
$ret = array();
// Postgresql only update
switch ($GLOBALS['db_type']) {
case 'pgsql':
$ret[] = update_sql("DROP TABLE {cache}");
$ret[] = update_sql("CREATE TABLE {cache} (\n cid varchar(255) NOT NULL default '',\n data bytea default '',\n expire integer NOT NULL default '0',\n created integer NOT NULL default '0',\n headers text default '',\n PRIMARY KEY (cid)\n )");
$ret[] = update_sql("CREATE INDEX {cache}_expire_idx ON {cache}(expire)");
break;
case 'mysql':
case 'mysqli':
break;
}
return $ret;
}