Skip to content

Commit

Permalink
Iotronic-standalone v2.3.6: database updated
Browse files Browse the repository at this point in the history
  • Loading branch information
npeditto committed Jul 3, 2019
1 parent 5a59ccd commit bc73fd5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
9 changes: 6 additions & 3 deletions utils/s4t-db.sql
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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`)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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');

Expand Down
4 changes: 3 additions & 1 deletion utils/s4t-mariadb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit bc73fd5

Please sign in to comment.