Commit 86342092 authored by Kirk Webb's avatar Kirk Webb Committed by Mike Hibler

Move to make room for DB update that snuck in before this one.

parent 5a6cd1d3
#
# Add feature/desire marker flags to blockstore virt and physical type tables.
#
use strict;
use libdb;
my $impotent = 0;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("external_networks", "vlans")) {
DBQueryFatal("alter table external_networks add ".
" `vlans` tinytext");
DBQueryFatal("UPDATE external_networks SET vlans=".
"CONCAT(CAST(min_vlan as CHAR), \"-\", ".
"CAST(max_vlan as CHAR))");
DBQueryFatal("alter table external_networks drop `min_vlan`");
DBQueryFatal("alter table external_networks drop `max_vlan`");
}
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