google_appliance.install in Google Search Appliance 5
File
google_appliance.install
View source
<?php
function google_appliance_install() {
$q = "\nCREATE TABLE IF NOT EXISTS `{cache_google}` (\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 `headers` text,\n PRIMARY KEY (`cid`),\n KEY `expire` (`expire`)\n) ENGINE=innoDB DEFAULT CHARSET=utf8\n";
$ret[] = db_query($q);
return $ret;
}
function google_appliance_update_1() {
$q = "\nCREATE TABLE IF NOT EXISTS `{cache_google}` (\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 `headers` text,\n PRIMARY KEY (`cid`),\n KEY `expire` (`expire`)\n) ENGINE=innoDB DEFAULT CHARSET=utf8\n";
$ret[] = update_sql($q);
return $ret;
}