From ce9b4e868b68269277a88bd34e9b05244366e9ab Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 11 Sep 2015 21:56:37 +0200 Subject: [PATCH] Database update for worker --- boot.php | 2 +- database.sql | 15 ++++++++++++++- update.php | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index b3b9265219..3bbbef3c96 100644 --- a/boot.php +++ b/boot.php @@ -19,7 +19,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Lily of the valley'); define ( 'FRIENDICA_VERSION', '3.4.1' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1188 ); +define ( 'DB_UPDATE_VERSION', 1189 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index 76df6aec19..a6eb71ef3b 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 3.4.1 (Lily of the valley) --- DB_UPDATE_VERSION 1188 +-- DB_UPDATE_VERSION 1189 -- ------------------------------------------ @@ -1020,3 +1020,16 @@ CREATE TABLE IF NOT EXISTS `userd` ( INDEX `username` (`username`) ) DEFAULT CHARSET=utf8; +-- +-- TABLE workerqueue +-- +CREATE TABLE IF NOT EXISTS `workerqueue` ( + `id` int(11) NOT NULL auto_increment PRIMARY KEY, + `parameter` text NOT NULL, + `priority` tinyint(3) unsigned NOT NULL DEFAULT 0, + `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `pid` int(11) NOT NULL DEFAULT 0, + `executed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + INDEX `created` (`created`) +) DEFAULT CHARSET=utf8; + diff --git a/update.php b/update.php index 761da7273d..06aab577a3 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@