diff --git a/installer/master/db_updates/2.sql b/installer/master/db_updates/2.sql new file mode 100644 index 0000000..0a8e0c4 --- /dev/null +++ b/installer/master/db_updates/2.sql @@ -0,0 +1 @@ +ALTER TABLE `containers` ADD `TerminationDate` TIMESTAMP NULL; diff --git a/installer/master/dump.sql b/installer/master/dump.sql index 9901131..ee4f2ff 100644 --- a/installer/master/dump.sql +++ b/installer/master/dump.sql @@ -32,6 +32,7 @@ CREATE TABLE IF NOT EXISTS `containers` ( `IncomingTrafficLimit` bigint(20) NOT NULL, `TotalTrafficLimit` bigint(20) NOT NULL, `UserId` bigint(20) NOT NULL, + `TerminationDate` timestamp NULL DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -58,6 +59,15 @@ CREATE TABLE IF NOT EXISTS `nodes` ( PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `settings` ( + `Id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `Key` varchar(120) NOT NULL, + `Value` text NOT NULL, + `LastChanged` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`Id`), + UNIQUE KEY `Key` (`Key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `templates` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(200) NOT NULL, @@ -78,12 +88,3 @@ CREATE TABLE IF NOT EXISTS `users` ( `AccessLevel` tinyint(4) NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE IF NOT EXISTS `settings` ( - `Id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `Key` varchar(120) NOT NULL, - `Value` text NOT NULL, - `LastChanged` timestamp NULL DEFAULT NULL, - PRIMARY KEY (`Id`), - UNIQUE KEY `Key` (`Key`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8;