Commit 0d21a9ff authored by Leigh B Stoller's avatar Leigh B Stoller

Add noclone flag to image_versions table.

parent ea4a5daa
...@@ -2158,6 +2158,7 @@ CREATE TABLE `image_versions` ( ...@@ -2158,6 +2158,7 @@ CREATE TABLE `image_versions` (
`origin_needupdate` tinyint(1) NOT NULL default '0', `origin_needupdate` tinyint(1) NOT NULL default '0',
`logfileid` varchar(40) default NULL, `logfileid` varchar(40) default NULL,
`noexport` tinyint(1) NOT NULL default '0', `noexport` tinyint(1) NOT NULL default '0',
`noclone` tinyint(1) NOT NULL default '0',
`ready` tinyint(1) NOT NULL default '0', `ready` tinyint(1) NOT NULL default '0',
`isdelta` tinyint(1) NOT NULL default '0', `isdelta` tinyint(1) NOT NULL default '0',
`isdataset` tinyint(1) NOT NULL default '0', `isdataset` tinyint(1) NOT NULL default '0',
......
#
# noclone flag in the images table,
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_versions", "noclone")) {
DBQueryFatal("ALTER TABLE image_versions ADD ".
" `noclone` tinyint(1) NOT NULL default '0' ".
" AFTER noexport");
}
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