Skip to content

Commit

Permalink
Update files for 0.5.0 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
turtle0x1 committed Oct 19, 2019
1 parent 79eeb31 commit 067d815
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 41 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Unreleased
0.5.0

Fixed
Container snapshot breaks loading deployments
Expand Down
5 changes: 4 additions & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You should only upgrade when a new version is tagged,
Restarting the `pm2` and `apache2` process may interupt running process please
be careful when upgrading!

## 0.4.0 -> 0.5.0 [WIP]
## 0.4.0 -> 0.5.0

The upgrade path is as follows for both ubuntu & centos

Expand All @@ -16,6 +16,9 @@ git pull
mysql < 0.5.0.sql
# This is new but recomended
git checkout 0.5.0
```


Expand Down
3 changes: 3 additions & 0 deletions examples/install_with_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ chown -R www-data:www-data /var/www/LxdMosaic/src/sensitiveData/certs
# Move in LxdManager
cd /var/www/LxdMosaic || exit

git checkout 0.5.0

npm install

# Install Dependecies
Expand All @@ -59,6 +61,7 @@ mysql < sql/seed.sql
mysql < sql/0.1.0.sql
mysql < sql/0.2.0.sql
mysql < sql/0.3.0.sql
mysql < sql/0.5.0.sql


cp examples/lxd_manager.conf /etc/apache2/sites-available/
Expand Down
3 changes: 3 additions & 0 deletions examples/install_with_clone_centos7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ chown -R apache:apache /var/www/LxdMosaic/src/sensitiveData/certs
# Move in LxdManager
cd /var/www/LxdMosaic || exit

git checkout 0.5.0

npm install

# Install Dependecies
Expand All @@ -75,6 +77,7 @@ mysql < sql/seed.sql
mysql < sql/0.1.0.sql
mysql < sql/0.2.0.sql
mysql < sql/0.3.0.sql
mysql < sql/0.5.0.sql


# Install a self-signed certificate as CentOS doesn't ship with one
Expand Down
43 changes: 43 additions & 0 deletions sql/0.5.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
use `LXD_Manager`;

CREATE TABLE `Deployment_Containers` (
`DC_ID` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`DC_Date_Created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`DC_Deployment_ID` INT(11) NOT NULL,
`DC_Host_ID` INT(11) NOT NULL,
`DC_Name` VARCHAR(255) NOT NULL,
`DC_First_Start` DATETIME NULL,
`DC_Last_Start` DATETIME NULL,
`DC_Last_Stop` DATETIME NULL,
`DC_Phone_Home_Date` DATETIME NULL,
`DC_Destoryed` DATETIME NULL
);

CREATE TABLE `Instance_Settings` (
`IS_ID` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`IS_Name` VARCHAR(255) NOT NULL,
`IS_Description` TEXT NOT NULL
);

INSERT INTO `Instance_Settings` (`IS_ID`, `IS_Name`, `IS_Description`) VALUES
(1, "Instance IP", "The connection string containers can reach this instance of LXDMosaic's node server to phone home when they are part of a deployment"),
(2, "Record Actions", "47 different actions will be recorded! 0 for disabled & 1 for enabled");


CREATE TABLE `Instance_Settings_Values` (
`ISV_ID` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`ISV_Date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
`ISV_IS_ID` INT(11) NOT NULL,
`ISV_Value` VARCHAR(255) NOT NULL
);

INSERT INTO `Instance_Settings_Values` (`ISV_IS_ID`, `ISV_Value`) VALUES (
2, 0
);

CREATE TABLE `Recorded_Actions` (
`RA_ID` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`RA_Date_Created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
`RA_Controller` VARCHAR(255) NOT NULL,
`RA_Params` JSON NOT NULL
);
12 changes: 0 additions & 12 deletions sql/deployment_containers.sql

This file was deleted.

21 changes: 0 additions & 21 deletions sql/instance_settings.sql

This file was deleted.

6 changes: 0 additions & 6 deletions sql/record_actions.sql

This file was deleted.

0 comments on commit 067d815

Please sign in to comment.