From 5c3f27fcbaed28f46b6da385221fb829dbda1675 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 8 Dec 2014 14:41:38 -0600 Subject: [PATCH] upgrade: Add %queue table on upgrade --- include/upgrader/streams/core.sig | 2 +- ...anup.sql => b26f29a6-7c218d81.cleanup.sql} | 0 ....patch.sql => b26f29a6-7c218d81.patch.sql} | 24 ++++++++++++++----- ...1c.task.php => b26f29a6-7c218d81.task.php} | 0 4 files changed, 19 insertions(+), 7 deletions(-) rename include/upgrader/streams/core/{b26f29a6-d7480e1c.cleanup.sql => b26f29a6-7c218d81.cleanup.sql} (100%) rename include/upgrader/streams/core/{b26f29a6-d7480e1c.patch.sql => b26f29a6-7c218d81.patch.sql} (90%) rename include/upgrader/streams/core/{b26f29a6-d7480e1c.task.php => b26f29a6-7c218d81.task.php} (100%) diff --git a/include/upgrader/streams/core.sig b/include/upgrader/streams/core.sig index 595beac67..595363a70 100644 --- a/include/upgrader/streams/core.sig +++ b/include/upgrader/streams/core.sig @@ -1 +1 @@ -d7480e1c31a1f20d6954ecbb342722d3 +7c218d81e84b304c1436326c26ace09d diff --git a/include/upgrader/streams/core/b26f29a6-d7480e1c.cleanup.sql b/include/upgrader/streams/core/b26f29a6-7c218d81.cleanup.sql similarity index 100% rename from include/upgrader/streams/core/b26f29a6-d7480e1c.cleanup.sql rename to include/upgrader/streams/core/b26f29a6-7c218d81.cleanup.sql diff --git a/include/upgrader/streams/core/b26f29a6-d7480e1c.patch.sql b/include/upgrader/streams/core/b26f29a6-7c218d81.patch.sql similarity index 90% rename from include/upgrader/streams/core/b26f29a6-d7480e1c.patch.sql rename to include/upgrader/streams/core/b26f29a6-7c218d81.patch.sql index 90cf32c4d..4d98136aa 100644 --- a/include/upgrader/streams/core/b26f29a6-d7480e1c.patch.sql +++ b/include/upgrader/streams/core/b26f29a6-7c218d81.patch.sql @@ -1,7 +1,7 @@ /** - * @signature d7480e1c31a1f20d6954ecbb342722d3 - * @version v1.9.5 - * @title Make editable content translatable + * @signature 7c218d81e84b304c1436326c26ace09d + * @version v1.9.6 + * @title Make editable content translatable and add queues * * This patch adds support for translatable administratively editable * content, such as help topic names, department and group names, site page @@ -28,7 +28,6 @@ ALTER TABLE `%TABLE_PREFIX%user_account` ADD `timezone` varchar(64) DEFAULT NULL AFTER `status`, ADD `extra` text AFTER `backend`; -DROP TABLE IF EXISTS `%TABLE_PREFIX%translation`; CREATE TABLE `%TABLE_PREFIX%translation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `object_hash` char(16) CHARACTER SET ascii DEFAULT NULL, @@ -51,7 +50,7 @@ CREATE TABLE `%TABLE_PREFIX%_timezones` ( `offset` int, `dst` tinyint(1) unsigned, `south` tinyint(1) unsigned default 0, - `olson_name` varchar(32) + `olson_name` varchar(32) ) DEFAULT CHARSET=utf8; INSERT INTO `%TABLE_PREFIX%_timezones` (`offset`, `dst`, `olson_name`) VALUES @@ -160,7 +159,20 @@ UPDATE `%TABLE_PREFIX%ticket` A1 A1.`lastupdate` = CAST(GREATEST(IFNULL(A1.lastmessage, 0), IFNULL(A1.closed, 0), IFNULL(A1.reopened, 0), A1.created) as DATETIME); +CREATE TABLE `%TABLE_PREFIX%queue` ( + `id` int(11) unsigned not null auto_increment, + `parent_id` int(11) unsigned not null default 0, + `flags` int(11) unsigned not null default 0, + `staff_id` int(11) unsigned not null default 0, + `sort` int(11) unsigned not null default 0, + `title` varchar(60), + `config` text, + `created` datetime not null, + `updated` datetime not null, + primary key (`id`) +) DEFAULT CHARSET=utf8; + -- Finished with patch UPDATE `%TABLE_PREFIX%config` - SET `value` = 'd7480e1c31a1f20d6954ecbb342722d3' + SET `value` = '7c218d81e84b304c1436326c26ace09d' WHERE `key` = 'schema_signature' AND `namespace` = 'core'; diff --git a/include/upgrader/streams/core/b26f29a6-d7480e1c.task.php b/include/upgrader/streams/core/b26f29a6-7c218d81.task.php similarity index 100% rename from include/upgrader/streams/core/b26f29a6-d7480e1c.task.php rename to include/upgrader/streams/core/b26f29a6-7c218d81.task.php -- GitLab