You are here

function system_update_155 in Drupal 5

Same name and namespace in other branches
  1. 4 database/updates.inc \system_update_155()

File

modules/system/system.install, line 2183

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;
}