You are here

google_appliance.install in Google Search Appliance 5

Same filename and directory in other branches
  1. 6.2 google_appliance.install
  2. 7 google_appliance.install

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