Commit a85fe938 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add nodetypes field to image_versions table.

parent e446488a
......@@ -1955,6 +1955,7 @@ CREATE TABLE `image_versions` (
`ready` tinyint(1) NOT NULL default '0',
`isdelta` tinyint(1) NOT NULL default '0',
`released` tinyint(1) NOT NULL default '0',
`nodetypes` text default NULL,
PRIMARY KEY (`imageid`,`version`),
KEY `pid` (`pid`,`imagename`,`version`),
KEY `gid` (`gid`),
......
......@@ -70,6 +70,11 @@ sub DoUpdate($$$)
" AFTER isdelta");
DBQueryFatal("update image_versions set released=1");
}
if (!DBSlotExists("image_versions", "nodetypes")) {
DBQueryFatal("ALTER TABLE image_versions ADD ".
" `nodetypes` text default NULL ".
" AFTER released");
}
if (!DBTableExists("os_info_versions")) {
DBQueryFatal("rename table os_info to os_info_versions");
}
......
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