fixed error metaconsole_node_id pandora_enterprise#9350

This commit is contained in:
Daniel Barbero 2022-08-12 11:34:35 +02:00
parent cd1dfa6361
commit 50bb50418d
1 changed files with 2 additions and 2 deletions

View File

@ -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;