From a48c6fea702f6d2c16332a5bf1f74214fefcb38d Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 19 Jun 2013 22:08:24 +0200 Subject: [PATCH] Add termination date field in VPS table --- installer/master/db_updates/2.sql | 1 + installer/master/dump.sql | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 installer/master/db_updates/2.sql 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;