From 65c733e1dd3f45eb48484247baf494c08e5d76b9 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 27 May 2020 09:18:21 +0200 Subject: [PATCH] iot metaconsole --- pandora_console/extras/mr/38.sql | 11 ++++++++++- .../pandoradb_migrate_6.0_to_7.0.mysql.sql | 11 +++++++++++ pandora_console/images/rules.png | Bin 0 -> 3994 bytes pandora_console/pandoradb.sql | 11 +++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 pandora_console/images/rules.png 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 0000000000000000000000000000000000000000..929cfcee07cae9be6b62186001752f8b56ee8c78 GIT binary patch literal 3994 zcmaJ?XIN8N*9{P=(iH^hC{3Cm3`R;q?;s*IgrS7qMG|R-B8b!h1rdQzq>CaYQlg;= zh|(bxAwULcLPBo=zv#U4J@2pg$Gvx-v-e$h?ena?Zjzh2f=-CbpU`}-AET= zjhuG<^U^Ac^V3@lMvJ}l{0e-lJ&v(GOj$IE@4POPB5UY{6cEaa@k+6zj309<51S&8 zkFD!mkiB8b(#jNBOH~-qO^^C=FnL}d9~U64s=Ni)fwE}fE)eSloX!_6=^D_y6IJYw zaixEMUQ&{UDFMLayhqKIGL$9yBymhxatWH)iVVE7^qEeB(4(7ApXWnQgT4tG9lM{o9|do&K$ z=;PVCdVN8o51@Z?P+9+Q80L&qWEwA^TagkJ6~7;E?qRSZm4@CeF}UZNB6{ORPdNf2 zMCMSuG)(^~mAB&vwoTy#2A&SC6}o>Mf4L7}Cto!7q-a*PAZ(!C&7&syiJ`uF)!;l7 zZ?>TZ;{fV>sCYtQ$#PwCg%05;pQZ533lp+guVt)wxDGTM`j%ugm*Sn_#yU6R1U$?r za%hPJd94OEV%MCDOlagMw~6sjQ>t398zJOY;1sv+jhi+FHc#iZM_T$G@WmEBc|zf0 zPHfP+JzX-t#1B&(jN6%4S9@qowiQ6W#lAL#(#71U2mE+B%o(eA9?S>P4+5$NUHFD$ z9WsKpa|*O`P67-#NNa+{a{gXL4GLNX2>KJhk<#W;rp%<3kuS>!1~M5xx6j$beH$M! zRhCyI{S9Cg2*S}&Z^5qM9L!0mjQQVtRqfB0C2-^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