function scheduler_install in Scheduler 5
Same name and namespace in other branches
- 8 scheduler.install \scheduler_install()
- 6 scheduler.install \scheduler_install()
- 2.x scheduler.install \scheduler_install()
File
- ./
scheduler.install, line 3
Code
function scheduler_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {scheduler} (\n nid int(10) unsigned NOT NULL,\n publish_on int(11) NOT NULL default '0',\n unpublish_on int(11) NOT NULL default '0',\n PRIMARY KEY (nid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {scheduler} (\n nid integer NOT NULL default '0',\n publish_on integer NOT NULL default '0',\n unpublish_on integer NOT NULL default '0',\n PRIMARY KEY (nid));");
break;
}
}