From 590ddc827c4b5749b4c7d2eccb31d434a1c739a0 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 2 Mar 2023 08:29:06 +0100 Subject: [PATCH] #9819 Change MR and add pandoradb.sql create table teventsound --- pandora_console/extras/mr/62.sql | 7 +++++++ pandora_console/extras/mr/65.sql | 10 ---------- pandora_console/pandoradb.sql | 10 ++++++++++ 3 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 pandora_console/extras/mr/65.sql diff --git a/pandora_console/extras/mr/62.sql b/pandora_console/extras/mr/62.sql index b5358f6254..a265c1a62d 100644 --- a/pandora_console/extras/mr/62.sql +++ b/pandora_console/extras/mr/62.sql @@ -1,6 +1,13 @@ -- Active: 1653046769261@@172.16.0.2@3306@pandora START TRANSACTION; +CREATE TABLE `tevent_sound` ( + `id` INT NOT NULL AUTO_INCREMENT, + `name` TEXT NULL, + `sound` TEXT NULL, + `active` TINYINT NOT NULL DEFAULT '1', +PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE INDEX agente_modulo_estado ON tevento (estado, id_agentmodule); CREATE INDEX idx_disabled ON talert_template_modules (disabled); diff --git a/pandora_console/extras/mr/65.sql b/pandora_console/extras/mr/65.sql deleted file mode 100644 index 7e65e62c2f..0000000000 --- a/pandora_console/extras/mr/65.sql +++ /dev/null @@ -1,10 +0,0 @@ -START TRANSACTION; - -CREATE TABLE `tevent_sound` ( - `id` INT NOT NULL AUTO_INCREMENT, - `name` TEXT NULL, - `sound` TEXT NULL, - `active` TINYINT NOT NULL DEFAULT '1', -PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -COMMIT; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 530a0049ac..3da24db710 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -4179,3 +4179,13 @@ CREATE TABLE IF NOT EXISTS `tmonitor_filter` ( `ag_custom_fields` TEXT, PRIMARY KEY (`id_filter`) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; + +-- --------------------------------------------------------------------- +-- Table `tevent_sound` +-- --------------------------------------------------------------------- +CREATE TABLE `tevent_sound` ( + `id` INT NOT NULL AUTO_INCREMENT, + `name` TEXT NULL, + `sound` TEXT NULL, + `active` TINYINT NOT NULL DEFAULT '1', +PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file