Commit 46dc5a0a authored by Leigh B Stoller's avatar Leigh B Stoller

Fix to image version support.

parent b84da3db
#
# Image versioning fix.
#
use strict;
use libdb;
use Image;
use EmulabFeatures;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("ALTER TABLE nodes ".
" change `def_boot_osid_vers` ".
" `def_boot_osid_vers` int(8) unsigned default '0', ".
" change `temp_boot_osid_vers` ".
" `temp_boot_osid_vers` int(8) unsigned default '0', ".
" change `next_boot_osid_vers` ".
" `next_boot_osid_vers` int(8) unsigned default '0'");
DBQueryFatal("update nodes set def_boot_osid_vers=0 ".
"where def_boot_osid_vers is null");
DBQueryFatal("update nodes set temp_boot_osid_vers=0 ".
"where temp_boot_osid_vers is null");
DBQueryFatal("update nodes set next_boot_osid_vers=0 ".
"where next_boot_osid_vers is null");
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