All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 80791650 authored by Leigh B Stoller's avatar Leigh B Stoller

Add extension_reason to apt_instances. Add notes to image_versions.

parent dc325948
......@@ -91,6 +91,7 @@ CREATE TABLE `apt_instances` (
`created` datetime default NULL,
`status` varchar(32) default NULL,
`extension_code` varchar(32) default NULL,
`extension_reason` mediumtext,
`servername` tinytext,
`manifest` mediumtext,
PRIMARY KEY (`uuid`)
......@@ -1996,6 +1997,7 @@ CREATE TABLE `image_versions` (
`isdelta` tinyint(1) NOT NULL default '0',
`released` tinyint(1) NOT NULL default '0',
`nodetypes` text default NULL,
`notes` mediumtext,
PRIMARY KEY (`imageid`,`version`),
KEY `pid` (`pid`,`imagename`,`version`),
KEY `gid` (`gid`),
......
#
# Add some text fields.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "extension_reason")) {
DBQueryFatal("ALTER TABLE apt_instances ADD ".
" `extension_reason` mediumtext after extension_code");
}
if (!DBSlotExists("image_versions", "notes")) {
DBQueryFatal("ALTER TABLE image_versions ADD ".
" `notes` mediumtext");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment