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