function update_status_update_5203 in Update Status 5.2
Backport seperate cache table and functionality from 6.x (#155450).
File
- ./
update_status.install, line 97
Code
function update_status_update_5203() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("CREATE TABLE {cache_update_status} (\n cid varchar(255) NOT NULL default '',\n data longblob,\n expire int(11) NOT NULL default '0',\n created int(11) NOT NULL default '0',\n PRIMARY KEY (cid)\n )");
break;
case 'pgsql':
$ret[] = update_sql("CREATE TABLE {cache_update_status} (\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 PRIMARY KEY (cid)\n )");
break;
}
return $ret;
}