Add IsTerminated column

feature/node-rewrite
Sven Slootweg 12 years ago
parent b7a2150625
commit c0b1e519ae

@ -46,6 +46,9 @@ class Vps extends CPHPDatabaseRecordClass
'timestamp' => array(
"TerminationDate" => "TerminationDate"
),
'boolean' => array(
"IsTerminated" => "Terminated"
),
'node' => array(
'Node' => "NodeId"
),

@ -0,0 +1 @@
ALTER TABLE `containers` ADD `Terminated` BOOLEAN NOT NULL;

@ -33,6 +33,7 @@ CREATE TABLE IF NOT EXISTS `containers` (
`TotalTrafficLimit` bigint(20) NOT NULL,
`UserId` bigint(20) NOT NULL,
`TerminationDate` timestamp NULL DEFAULT NULL,
`Terminated` tinyint(1) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Loading…
Cancel
Save