mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Move tnetwork_matrix to mr 26
Former-commit-id: 731ffaeb7253345bc83afe645f788e6a130080b4
This commit is contained in:
parent
511c5e3d10
commit
287ce78260
@ -1,15 +1,5 @@
|
|||||||
START TRANSACTION;
|
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';
|
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');
|
INSERT INTO `tconfig` (`token`, `value`) VALUES ('status_monitor_fields', 'policy,agent,data_type,module_name,server_type,interval,status,graph,warn,data,timestamp');
|
||||||
|
14
pandora_console/extras/mr/26.sql
Normal file
14
pandora_console/extras/mr/26.sql
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user