From 037bf016fb6eb19e729425fe1b1949c3ac64eff5 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 7 Apr 2022 17:26:14 +0200 Subject: [PATCH 1/2] Swap some stuff in MR becouse some environments had FK in deprecated tables --- pandora_console/extras/mr/53.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/extras/mr/53.sql b/pandora_console/extras/mr/53.sql index 1caea7b2cb..e857eb9db7 100644 --- a/pandora_console/extras/mr/53.sql +++ b/pandora_console/extras/mr/53.sql @@ -27,9 +27,9 @@ ALTER TABLE `treport_content` ADD COLUMN `render_definition` TEXT; ALTER TABLE `treport_content_template` ADD COLUMN `macros_definition` TEXT; ALTER TABLE `treport_content_template` ADD COLUMN `render_definition` TEXT; -DROP TABLE `tupdate`; -DROP TABLE `tupdate_package`; DROP TABLE `tupdate_journal`; +DROP TABLE `tupdate_package`; +DROP TABLE `tupdate`; CREATE TABLE `tupdate_journal` ( `id` SERIAL, From 9406fa2c098740aac9b4fe44169c51bed282ab5d Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 8 Apr 2022 11:31:36 +0200 Subject: [PATCH 2/2] switch order of drops in MR --- pandora_console/extras/mr/53.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/extras/mr/53.sql b/pandora_console/extras/mr/53.sql index e857eb9db7..6cc38fee39 100644 --- a/pandora_console/extras/mr/53.sql +++ b/pandora_console/extras/mr/53.sql @@ -28,8 +28,8 @@ ALTER TABLE `treport_content_template` ADD COLUMN `macros_definition` TEXT; ALTER TABLE `treport_content_template` ADD COLUMN `render_definition` TEXT; DROP TABLE `tupdate_journal`; -DROP TABLE `tupdate_package`; DROP TABLE `tupdate`; +DROP TABLE `tupdate_package`; CREATE TABLE `tupdate_journal` ( `id` SERIAL,