function hacked_install in Hacked! 5
Same name and namespace in other branches
- 6.2 hacked.install \hacked_install()
- 6 hacked.install \hacked_install()
File
- ./
hacked.install, line 4
Code
function hacked_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {cache_hacked} (\n cid varchar(255) BINARY 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':
db_query("CREATE TABLE {cache_hacked} (\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 )");
break;
}
}