Skip to content
Snippets Groups Projects
Commit c8400d95 authored by Peter Rotich's avatar Peter Rotich
Browse files

upgrader: Fix incorrect SQL syntax.

parent 2668623e
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,9 @@ SELECT min(id) AS id FROM `%TABLE_PREFIX%thread_entry`
WHERE type = 'M'
GROUP BY thread_id;
UPDATE `%TABLE_PREFIX%thread_entry`
SET `flags` = 1
WHERE `id` IN (SELECT `id` FROM `%TABLE_PREFIX%_orig_msg_ids`);
UPDATE `%TABLE_PREFIX%thread_entry` A1
JOIN `%TABLE_PREFIX%_orig_msg_ids` A2 ON (A1.id = A2.id)
SET A1.`flags` = 1 ;
DROP TABLE `%TABLE_PREFIX%_orig_msg_ids`;
......
......@@ -5,7 +5,7 @@
*/
ALTER TABLE `%TABLE_PREFIX%help_topic`
DROP `form_id` int(10) unsigned NOT NULL default '0';
DROP `form_id`;
ALTER TABLE `%TABLE_PREFIX%filter`
DROP `reject_ticket`,
......
......@@ -130,9 +130,6 @@ insert into `%TABLE_PREFIX%help_topic_form`
join `%TABLE_PREFIX%help_topic` A2
where A1.`type` = 'T';
ALTER TABLE `%TABLE_PREFIX%help_topic`
DROP `form_id` int(10) unsigned NOT NULL default '0';
-- Finished with patch
UPDATE `%TABLE_PREFIX%config`
SET `value` = '2d590ffab4a6a928f08cc97aace1399e'
......
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