You are here

function simplenews_scheduler_install in Simplenews Scheduler 5

Same name and namespace in other branches
  1. 8 simplenews_scheduler.install \simplenews_scheduler_install()
  2. 6.2 simplenews_scheduler.install \simplenews_scheduler_install()
  3. 6 simplenews_scheduler.install \simplenews_scheduler_install()
  4. 7 simplenews_scheduler.install \simplenews_scheduler_install()
  5. 2.0.x simplenews_scheduler.install \simplenews_scheduler_install()

File

./simplenews_scheduler.install, line 3

Code

function simplenews_scheduler_install() {
  $result[] = db_query("CREATE TABLE {simplenews_scheduler} (\n    sid int(10) NOT NULL auto_increment,\n    snid int(10) NOT NULL default '0',\n    run_count int NOT NULL default 0,\n    run_limit int NOT NULL,\n    last_run int(11) NOT NULL default 0,\n    sched_interval varchar(10),\n    sched_start int(11) NOT NULL,\n    PRIMARY KEY  (sid)\n    ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
  $result[] = db_query("CREATE TABLE {simplenews_scheduler_editions} (\n    `snid` int(10) NOT NULL default '0',\n    `edition_snid` int(10) NOT NULL default '0',\n    `date_issued` int(11) NOT NULL default '0'\n    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;");
  return $result;
}