Commit 615c64dd authored by Kirk Webb's avatar Kirk Webb
Browse files

Add 'storagehost' to erole enum in reserved table.

The 'storagehost' value in the erole enum column will allow ptopgen to
identify hosts that are eligible for mapping as an infrastructure
storage host.
parent c915c269
......@@ -3558,7 +3558,7 @@ CREATE TABLE `reserved` (
`exptidx` int(11) NOT NULL default '0',
`rsrv_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`vname` varchar(32) default NULL,
`erole` enum('node','virthost','delaynode','simhost','sharedhost','subboss') NOT NULL default 'node',
`erole` enum('node','virthost','delaynode','simhost','sharedhost','subboss','storagehost') NOT NULL default 'node',
`simhost_violation` tinyint(3) unsigned NOT NULL default '0',
`old_pid` varchar(48) NOT NULL default '',
`old_eid` varchar(32) NOT NULL default '',
......
#
# Add 'storagehost' enum option to erole column of reserved table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table reserved change erole erole " .
" enum('node','virthost','delaynode','simhost', " .
" 'sharedhost', 'subboss', 'storagehost') " .
" NOT NULL default 'node'");
return 0;
}
1;
Supports Markdown
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