From 287ce78260751a23fc1c628d33f4c3bfc654ff11 Mon Sep 17 00:00:00 2001 From: Fermin Date: Thu, 28 Feb 2019 18:18:20 +0100 Subject: [PATCH] Move tnetwork_matrix to mr 26 Former-commit-id: 731ffaeb7253345bc83afe645f788e6a130080b4 --- pandora_console/extras/mr/25.sql | 10 ---------- pandora_console/extras/mr/26.sql | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 pandora_console/extras/mr/26.sql diff --git a/pandora_console/extras/mr/25.sql b/pandora_console/extras/mr/25.sql index 3f7c6baffb..0809bc486e 100644 --- a/pandora_console/extras/mr/25.sql +++ b/pandora_console/extras/mr/25.sql @@ -1,15 +1,5 @@ START TRANSACTION; -CREATE TABLE IF NOT EXISTS `tnetwork_matrix` ( - `id` int(10) unsigned NOT NULL auto_increment, - `source` varchar(60) default '', - `destination` varchar(60) default '', - `utimestamp` bigint(20) default 0, - `bytes` int(18) unsigned default 0, - `pkts` int(18) unsigned default 0, - PRIMARY KEY (`id`), - UNIQUE (`source`, `destination`, `utimestamp`) -) ENGINE = InnoDB DEFAULT CHARSET=utf8 ; UPDATE `twidget` SET `unique_name`='example' WHERE `class_name` LIKE 'WelcomeWidget'; INSERT INTO `tconfig` (`token`, `value`) VALUES ('status_monitor_fields', 'policy,agent,data_type,module_name,server_type,interval,status,graph,warn,data,timestamp'); diff --git a/pandora_console/extras/mr/26.sql b/pandora_console/extras/mr/26.sql new file mode 100644 index 0000000000..8a50248618 --- /dev/null +++ b/pandora_console/extras/mr/26.sql @@ -0,0 +1,14 @@ +START TRANSACTION; + +CREATE TABLE IF NOT EXISTS `tnetwork_matrix` ( + `id` int(10) unsigned NOT NULL auto_increment, + `source` varchar(60) default '', + `destination` varchar(60) default '', + `utimestamp` bigint(20) default 0, + `bytes` int(18) unsigned default 0, + `pkts` int(18) unsigned default 0, + PRIMARY KEY (`id`), + UNIQUE (`source`, `destination`, `utimestamp`) +) ENGINE = InnoDB DEFAULT CHARSET=utf8 ; + +COMMIT; \ No newline at end of file