From cd1dfa63612661ad23290194fd3c0e6c34afcbd6 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Date: Fri, 12 Aug 2022 11:32:07 +0200 Subject: [PATCH 1/2] fixed error metaconsole_node_id pandora_enterprise#9350 --- pandora_console/extras/mr/57.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 pandora_console/extras/mr/57.sql diff --git a/pandora_console/extras/mr/57.sql b/pandora_console/extras/mr/57.sql new file mode 100644 index 0000000000..c5ced5a76b --- /dev/null +++ b/pandora_console/extras/mr/57.sql @@ -0,0 +1,6 @@ +START TRANSACTION; + +SET @id_config := (SELECT id_config FROM tconfig WHERE token = 'metaconsole_node_id' AND value is not null ORDER BY id_config DESC LIMIT 1); +DELETE FROM tconfig WHERE token = 'metaconsole_node_id' AND (id_config < @id_config OR value IS NULL); + +COMMIT; \ No newline at end of file From 50bb50418deeb8e5ed78098a61b48ac2046a5a86 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Date: Fri, 12 Aug 2022 11:34:35 +0200 Subject: [PATCH 2/2] fixed error metaconsole_node_id pandora_enterprise#9350 --- pandora_console/extras/mr/57.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/extras/mr/57.sql b/pandora_console/extras/mr/57.sql index c5ced5a76b..4d183cd8e4 100644 --- a/pandora_console/extras/mr/57.sql +++ b/pandora_console/extras/mr/57.sql @@ -1,6 +1,6 @@ START TRANSACTION; -SET @id_config := (SELECT id_config FROM tconfig WHERE token = 'metaconsole_node_id' AND value is not null ORDER BY id_config DESC LIMIT 1); -DELETE FROM tconfig WHERE token = 'metaconsole_node_id' AND (id_config < @id_config OR value IS NULL); +SET @id_config := (SELECT id_config FROM tconfig WHERE `token` = 'metaconsole_node_id' AND `value` IS NOT NULL ORDER BY id_config DESC LIMIT 1); +DELETE FROM tconfig WHERE `token` = 'metaconsole_node_id' AND (id_config < @id_config OR `value` IS NULL); COMMIT; \ No newline at end of file