Browse Source

! And the upgrader needs them too.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
6d72e64d6b
3 changed files with 46 additions and 0 deletions
  1. 14 0
      other/upgrade_2-1_mysql.sql
  2. 18 0
      other/upgrade_2-1_postgresql.sql
  3. 14 0
      other/upgrade_2-1_sqlite.sql

+ 14 - 0
other/upgrade_2-1_mysql.sql

@@ -204,6 +204,20 @@ VALUES
 	(0, 240, 1, 'd', 0, 'remove_old_drafts');
 ---#
 
+/******************************************************************************/
+---- Adding background tasks support
+/******************************************************************************/
+---# Adding the new table
+CREATE TABLE IF NOT EXISTS {$db_prefix}background_tasks (
+  id_task int(10) unsigned NOT NULL auto_increment,
+  task_file varchar(255) NOT NULL default '',
+  task_class varchar(255) NOT NULL default '',
+  task_data mediumtext NOT NULL,
+  claimed_time int(10) unsigned NOT NULL default '0',
+  PRIMARY KEY (id_task)
+) ENGINE=MyISAM;
+---#
+
 /******************************************************************************/
 ---- Replacing MSN with Skype
 /******************************************************************************/

+ 18 - 0
other/upgrade_2-1_postgresql.sql

@@ -258,6 +258,24 @@ VALUES
 	(0, 240, 1, 'd', 0, 'remove_old_drafts');
 ---#
 
+/******************************************************************************/
+---- Adding background tasks support
+/******************************************************************************/
+---# Adding the sequence
+CREATE SEQUENCE {$db_prefix}background_tasks_seq;
+---#
+
+---# Adding the table
+CREATE TABLE {$db_prefix}background_tasks (
+  id_task int default nextval('{$db_prefix}background_tasks_seq'),
+  task_file varchar(255) NOT NULL default '',
+  task_class varchar(255) NOT NULL default '',
+  task_data text NOT NULL,
+  claimed_time int unsigned NOT NULL default '0',
+  PRIMARY KEY (id_task)
+);
+---#
+
 /******************************************************************************/
 ---- Replacing MSN with Skype
 /******************************************************************************/

+ 14 - 0
other/upgrade_2-1_sqlite.sql

@@ -225,6 +225,20 @@ VALUES
 	(0, 240, 1, 'd', 0, 'remove_old_drafts');
 ---#
 
+/******************************************************************************/
+---- Adding background tasks support
+/******************************************************************************/
+---# Adding the new table
+CREATE TABLE {$db_prefix}background_tasks (
+  id_task integer primary key,
+  task_file varchar(255) NOT NULL default '',
+  task_class varchar(255) NOT NULL default '',
+  task_data text NOT NULL,
+  claimed_time int NOT NULL default '0',
+  PRIMARY KEY (id_task)
+);
+---#
+
 /******************************************************************************/
 ---- Replacing MSN with Skype
 /******************************************************************************/