Signed-off-by: Peter Spicer <sleeping@myperch.org>
@@ -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
@@ -258,6 +258,24 @@ VALUES
+---# 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_data text NOT NULL,
+ claimed_time int unsigned NOT NULL default '0',
+);
@@ -225,6 +225,20 @@ VALUES
+ id_task integer primary key,
+ claimed_time int NOT NULL default '0',