diff --git a/pandora_console/extras/mr/38.sql b/pandora_console/extras/mr/38.sql index 901e0f89dc..32811811ab 100644 --- a/pandora_console/extras/mr/38.sql +++ b/pandora_console/extras/mr/38.sql @@ -1,6 +1,15 @@ START TRANSACTION; INSERT INTO `ttipo_modulo` VALUES (38,'web_server_status_code_string',9,'Remote HTTP module to check server status code','mod_web_data.png'); + ALTER TABLE trecon_task add column `rcmd_enabled` TINYINT(1) UNSIGNED DEFAULT 0 AFTER `wmi_enabled`; -COMMIT; +CREATE TABLE `tnode_relations` ( + `id` int(10) unsigned NOT NULL auto_increment, + `gateway` VARCHAR(100) NOT NULL, + `imei` VARCHAR(100) NOT NULL, + `node_address` VARCHAR(60) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +COMMIT; \ No newline at end of file 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 ca4c9f02e0..a2fe08b5af 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 @@ -2723,4 +2723,15 @@ UPDATE twidget SET description='Show a visual console' WHERE class_name='MapsMad UPDATE twidget SET description='Clock' WHERE class_name='ClockWidget'; UPDATE twidget SET description='Group status' WHERE class_name='SystemGroupStatusWidget'; +-- ---------------------------------------------------------------------- +-- Table `tnode_relations` +-- ---------------------------------------------------------------------- +CREATE TABLE `tnode_relations` ( + `id` int(10) unsigned NOT NULL auto_increment, + `gateway` VARCHAR(100) NOT NULL, + `imei` VARCHAR(100) NOT NULL, + `node_address` VARCHAR(60) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + diff --git a/pandora_console/images/rules.png b/pandora_console/images/rules.png new file mode 100644 index 0000000000..929cfcee07 Binary files /dev/null and b/pandora_console/images/rules.png differ diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index a00b796864..70fce90995 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -3778,3 +3778,14 @@ CREATE TABLE `tremote_command_target` ( FOREIGN KEY (`rcmd_id`) REFERENCES `tremote_command`(`id`) ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- ---------------------------------------------------------------------- +-- Table `tnode_relations` +-- ---------------------------------------------------------------------- +CREATE TABLE `tnode_relations` ( + `id` int(10) unsigned NOT NULL auto_increment, + `gateway` VARCHAR(100) NOT NULL, + `imei` VARCHAR(100) NOT NULL, + `node_address` VARCHAR(60) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8;