function admin_menu_update_5300 in Administration menu 5.3
Add {cache_admin_menu} table.
File
- ./
admin_menu.install, line 69
Code
function admin_menu_update_5300() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("CREATE TABLE {cache_admin_menu} (\n cid varchar(255) NOT NULL default '',\n data longblob,\n expire int NOT NULL default '0',\n created int NOT NULL default '0',\n headers text,\n PRIMARY KEY (cid),\n INDEX expire (expire)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */");
break;
case 'pgsql':
$ret[] = update_sql("CREATE TABLE {cache_admin_menu} (\n cid varchar(255) NOT NULL default '',\n data bytea,\n expire int NOT NULL default '0',\n created int NOT NULL default '0',\n headers text,\n PRIMARY KEY (cid)\n )");
$ret[] = update_sql("CREATE INDEX {cache_admin_menu}_expire_idx ON {cache_admin_menu} (expire)");
break;
}
return $ret;
}