From 1dc826c9ff178bd1a18966d9b721245081adc961 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Fri, 21 Jun 2019 11:29:51 +0200 Subject: [PATCH] Added field to tevent_filter (id_source_event) --- pandora_console/extras/mr/29.sql | 5 +++++ .../extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 1 + pandora_console/pandoradb.sql | 1 + 3 files changed, 7 insertions(+) create mode 100644 pandora_console/extras/mr/29.sql diff --git a/pandora_console/extras/mr/29.sql b/pandora_console/extras/mr/29.sql new file mode 100644 index 0000000000..a140d8bd58 --- /dev/null +++ b/pandora_console/extras/mr/29.sql @@ -0,0 +1,5 @@ +START TRANSACTION; + +ALTER TABLE tevent_filter ADD column id_source_event int(10); + +COMMIT; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index d5ddbdd740..8846f4b80d 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1277,6 +1277,7 @@ ALTER TABLE tevent_filter ADD COLUMN `date_to` date DEFAULT NULL; ALTER TABLE tevent_filter ADD COLUMN `user_comment` text NOT NULL; ALTER TABLE tevent_filter ADD COLUMN `source` tinytext NOT NULL; ALTER TABLE tevent_filter ADD COLUMN `id_extra` tinytext NOT NULL; +ALTER TABLE tevent_filter ADD column id_source_event int(10); -- --------------------------------------------------------------------- -- Table `tusuario` -- --------------------------------------------------------------------- diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 254918026a..8e64d738bc 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1101,6 +1101,7 @@ CREATE TABLE IF NOT EXISTS `tevent_filter` ( `source` tinytext NOT NULL, `id_extra` tinytext NOT NULL, `user_comment` text NOT NULL, + `id_source_event` int(10) default NULL, PRIMARY KEY (`id_filter`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;