2022-08-16 18:42:51 +02:00
|
|
|
START TRANSACTION;
|
|
|
|
|
|
|
|
ALTER TABLE `tplanned_downtime` ADD COLUMN `cron_interval_from` VARCHAR(100) DEFAULT '';
|
|
|
|
ALTER TABLE `tplanned_downtime` ADD COLUMN `cron_interval_to` VARCHAR(100) DEFAULT '';
|
|
|
|
|
2022-08-12 11:34:35 +02:00
|
|
|
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);
|
2022-08-12 11:32:07 +02:00
|
|
|
|
2022-08-16 18:42:51 +02:00
|
|
|
COMMIT;
|