Skip to content
Snippets Groups Projects
Commit d3fff36b authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix glitch in upgrade patch

parent 15546859
No related branches found
No related tags found
No related merge requests found
/** /**
* @version v1.9.4 * @version v1.9.4
* @signature 519d98cd885f060e220da7b30a6f78ae * @signature b26f29a6bb5dbb3510b057632182d138
* @title Add properties filed and drop 'resolved' state * @title Add properties filed and drop 'resolved' state
* *
* This patch drops resolved state and any associated statuses * This patch drops resolved state and any associated statuses
...@@ -13,9 +13,10 @@ SET @statusId = ( ...@@ -13,9 +13,10 @@ SET @statusId = (
WHERE `state` = 'closed' ORDER BY id ASC LIMIT 1); WHERE `state` = 'closed' ORDER BY id ASC LIMIT 1);
UPDATE `%TABLE_PREFIX%ticket` t1 UPDATE `%TABLE_PREFIX%ticket` t1
LEFT JOIN `%TABLE_PREFIX%ticket_status` t2 JOIN `%TABLE_PREFIX%ticket_status` t2
ON ( t2.id = t1.status_id AND t2.state="resolved") ON (t2.id = t1.status_id)
SET t1.status_id = @statusId; SET t1.status_id = @statusId
WHERE t2.state='resolved';
-- add properties field -- add properties field
ALTER TABLE `%TABLE_PREFIX%ticket_status` ALTER TABLE `%TABLE_PREFIX%ticket_status`
...@@ -42,5 +43,5 @@ ALTER TABLE `%TABLE_PREFIX%note` ...@@ -42,5 +43,5 @@ ALTER TABLE `%TABLE_PREFIX%note`
-- Set new schema signature -- Set new schema signature
UPDATE `%TABLE_PREFIX%config` UPDATE `%TABLE_PREFIX%config`
SET `value` = '519d98cd885f060e220da7b30a6f78ae' SET `value` = 'b26f29a6bb5dbb3510b057632182d138'
WHERE `key` = 'schema_signature' AND `namespace` = 'core'; WHERE `key` = 'schema_signature' AND `namespace` = 'core';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment