New feature: Graphic grouping. added mr

This commit is contained in:
Daniel Maya 2017-05-23 17:17:40 +02:00
parent e243067c4b
commit 0f9a2cf2f8
1 changed files with 32 additions and 0 deletions

View File

@ -14,4 +14,36 @@ UPDATE tgis_map_connection SET conection_data = '{"type":"OSM","url":"http://til
ALTER TABLE tpolicy_modules MODIFY post_process double(24,15) default 0;
CREATE TABLE IF NOT EXISTS `tcontainer` (
`id_container` mediumint(4) unsigned NOT NULL auto_increment,
`name` varchar(100) NOT NULL default '',
`parent` mediumint(4) unsigned NOT NULL default 0,
`disabled` tinyint(3) unsigned NOT NULL default 0,
`id_group` mediumint(8) unsigned NULL default 0,
`description` TEXT NOT NULL,
PRIMARY KEY (`id_container`),
KEY `parent_index` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `tcontainer` SET `name` = 'Default graph container';
CREATE TABLE IF NOT EXISTS `tcontainer_item` (
`id_ci` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`id_container` mediumint(4) unsigned NOT NULL default 0,
`type` varchar(30) default 'simple_graph',
`id_agent` int(10) unsigned NOT NULL default 0,
`id_agent_module` bigint(14) unsigned NULL default NULL,
`time_lapse` int(11) NOT NULL default 0,
`id_graph` INTEGER UNSIGNED default 0,
`only_average` tinyint (1) unsigned default 0 not null,
`id_group` INT (10) unsigned NOT NULL DEFAULT 0,
`id_module_group` INT (10) unsigned NOT NULL DEFAULT 0,
`agent` varchar(100) NOT NULL default '',
`module` varchar(100) NOT NULL default '',
`id_tag` integer(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY(`id_ci`),
FOREIGN KEY (`id_container`) REFERENCES tcontainer(`id_container`)
ON DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
COMMIT;