From a5517a9c0243cafe8a3ff9aaae7a71f94b866d02 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 9 Jun 2022 15:12:05 +0200 Subject: [PATCH 1/2] #9134 Added disabled --- pandora_console/pandoradb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index ebd940c749..6da9fd470b 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -3664,7 +3664,7 @@ CREATE TABLE IF NOT EXISTS `tautoconfig` ( `name` VARCHAR(100) NOT NULL, `order` INT NOT NULL DEFAULT 0, `description` TEXT, - + `disabled` TINYINT DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; From 519fd13299b4a2ba96d09ce6d5c08b7fce681b97 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 9 Jun 2022 15:22:14 +0200 Subject: [PATCH 2/2] #9134 Added dsiabled in mr --- pandora_console/extras/mr/55.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandora_console/extras/mr/55.sql b/pandora_console/extras/mr/55.sql index f53133c456..b802aa2dd8 100644 --- a/pandora_console/extras/mr/55.sql +++ b/pandora_console/extras/mr/55.sql @@ -4,4 +4,14 @@ ALTER TABLE `tservice` ADD COLUMN `enable_sunburst` tinyint(1) NOT NULL default ALTER TABLE `tdashboard` MODIFY `name` TEXT NOT NULL DEFAULT ''; +SET @st_oum763 = (SELECT IF( + (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'tautoconfig' AND table_schema = DATABASE() AND column_name = 'disabled') > 0, + "SELECT 1", + "ALTER TABLE `tautoconfig` ADD COLUMN `disabled` TINYINT DEFAULT 0" +)); + +PREPARE pr_oum763 FROM @st_oum763; +EXECUTE pr_oum763; +DEALLOCATE PREPARE pr_oum763; + COMMIT;