You are here

function dynamicload_install in Javascript Tools 5

Implementation of hook_install().

1 call to dynamicload_install()
dynamicload_update_1 in dynamicload/dynamicload.install

File

dynamicload/dynamicload.install, line 6

Code

function dynamicload_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {dynamicload_blocks} (\n        module varchar(64) NOT NULL,\n        delta varchar(32) NOT NULL,\n        refresh int NOT NULL default '0',\n        refresh_interval int NOT NULL default '0',\n        scroll int NOT NULL default '0',\n        apply int NOT NULL default '0',\n        target varchar(128) NOT NULL default '',\n        method int NOT NULL default '0',\n        PRIMARY KEY (module, delta)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
      break;
    case 'pgsql':
      db_query("CREATE TABLE {dynamicload_blocks} (\n        module varchar(64) NOT NULL,\n        delta varchar(32) NOT NULL,\n        refresh int NOT NULL default '0',\n        refresh_interval int NOT NULL default '0',\n        scroll int NOT NULL default '0',\n        apply int NOT NULL default '0',\n        target varchar(128) NOT NULL default '',\n        method int NOT NULL default '0',\n        PRIMARY KEY (module, delta)\n      )");
      break;
  }
}