You are here

function update_status_install in Update Status 5.2

Implementation of hook_install().

File

./update_status.install, line 6

Code

function update_status_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("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':
      db_query("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;
  }
}