diff --git a/package.json b/package.json index 9bd3b2d..8d2a426 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mdslab/iotronic-standalone", - "version": "2.3.5", + "version": "2.3.6", "description": "IoTronic-standalone is the implementation of a personal Cloud to remote manage embedded devices (Arduino YUN/Linino One, Raspberry Pi 2/3, etc)", "main": "lib/iotronic_standalone.js", "scripts": { diff --git a/utils/s4t-db.sql b/utils/s4t-db.sql old mode 100644 new mode 100755 index 0f97a0d..05a5b43 --- a/utils/s4t-db.sql +++ b/utils/s4t-db.sql @@ -1,7 +1,8 @@ -- MySQL Script generated by MySQL Workbench --- lun 18 feb 2019 17:26:24 CET +-- gio 14 mar 2019 14:43:13 CET -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering +-- IOTRONIC DB: v9-s4t-iotronic_20190314 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; @@ -96,6 +97,7 @@ CREATE TABLE IF NOT EXISTS `s4t-iotronic`.`boards` ( `pubkey` LONGTEXT NULL, `password` VARCHAR(60) NULL, `lr_version` VARCHAR(10) NULL, + `conn_time` TIMESTAMP NULL DEFAULT NULL, PRIMARY KEY (`board_id`), INDEX `fk_boards_layout1_idx` (`layout_id` ASC), INDEX `fk_boards_projects1_idx` (`projects_id` ASC), @@ -643,7 +645,7 @@ CREATE TABLE IF NOT EXISTS `s4t-iotronic`.`connectivity` ( `main` TINYINT(1) NOT NULL, `metadata` LONGTEXT NULL DEFAULT NULL, PRIMARY KEY (`conn_id`, `board_id`), - INDEX `fk_connectivity_types_boards1_idx` (`board_id` ASC), + INDEX `fk_connectivity_boards1_idx` (`board_id` ASC), CONSTRAINT `fk_connectivity_connectivity1` FOREIGN KEY (`conn_id`) REFERENCES `s4t-iotronic`.`connectivity_types` (`id`) @@ -673,6 +675,7 @@ INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `ima INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (4, 'Raspberry Pi 3', 'Raspberry', 'Raspbian', 'raspberry_pi', 'debian'); INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (5, 'Orange Pi Zero', 'Orange', 'Armbian', 'raspberry_pi', 'debian'); INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (6, 'Artik', 'Samsung', 'Ubuntu-16.04', 'artik', 'debian'); +INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (7, 'Arancino', 'Smartme.IO', 'Arancino OS', 'raspberry_pi', 'debian'); COMMIT; @@ -708,7 +711,7 @@ START TRANSACTION; USE `s4t-iotronic`; INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (1, 'SSH', 22, 'SSH'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (2, 'WEB', 80, 'HTTP'); -INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (3, 'WEB SSL', 443, 'HTTPS'); +INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (3, 'WEB-SSL', 443, 'HTTPS'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (4, 'Node-RED', 1880, 'HTTP'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (5, 'Mosquitto', 1883, 'HTTP'); diff --git a/utils/s4t-mariadb.sql b/utils/s4t-mariadb.sql index 984971e..f66c10e 100644 --- a/utils/s4t-mariadb.sql +++ b/utils/s4t-mariadb.sql @@ -96,6 +96,7 @@ CREATE TABLE IF NOT EXISTS `s4t-iotronic`.`boards` ( `pubkey` LONGTEXT NULL, `password` VARCHAR(60) NULL, `lr_version` VARCHAR(10) NULL, + `conn_time` TIMESTAMP NULL DEFAULT NULL, PRIMARY KEY (`board_id`), INDEX `fk_boards_layout1_idx` (`layout_id` ASC), INDEX `fk_boards_projects1_idx` (`projects_id` ASC), @@ -651,6 +652,7 @@ INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `ima INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (4, 'Raspberry Pi 3', 'Raspberry', 'Raspbian', 'raspberry_pi', 'debian'); INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (5, 'Orange Pi Zero', 'Orange', 'Armbian', 'raspberry_pi', 'debian'); INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (6, 'Artik', 'Samsung', 'Ubuntu-16.04', 'artik', 'debian'); +INSERT INTO `s4t-iotronic`.`layouts` (`id_layout`, `model`, `manufacturer`, `image`, `layout`, `distro`) VALUES (7, 'Arancino', 'Smartme.IO', 'Arancino OS', 'raspberry_pi', 'debian'); COMMIT; @@ -701,7 +703,7 @@ START TRANSACTION; USE `s4t-iotronic`; INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (1, 'SSH', 22, 'SSH'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (2, 'WEB', 80, 'HTTP'); -INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (3, 'WEB SSL', 443, 'HTTPS'); +INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (3, 'WEB-SSL', 443, 'HTTPS'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (4, 'Node-RED', 1880, 'HTTP'); INSERT INTO `s4t-iotronic`.`services` (`id`, `name`, `port`, `protocol`) VALUES (5, 'Mosquitto', 1883, 'HTTP');