Commit 6c9d34fb authored by Gary Wong's avatar Gary Wong

Slight fixes to the update script: reserved.sharing_mode has changed, and

add escaping to the table_regex command.
parent 83c32604
......@@ -35,6 +35,8 @@ sub DoUpdate($$$)
DBQueryFatal("alter table reserved change `erole` ".
" `erole` enum('node','virthost','delaynode','simhost', ".
" 'sharedhost') NOT NULL default 'node'");
DBQueryFatal("alter table reserved change `sharing_mode` ".
" `sharing_mode` varchar(32) default NULL");
DBQueryFatal("alter table os_info change osfeatures osfeatures ".
" set('ping','ssh','ipod','isup','veths','veth-ne', ".
......@@ -56,7 +58,7 @@ sub DoUpdate($$$)
DBQueryFatal("replace into table_regex values ".
" ('virt_nodes','sharing_mode','text','regex', ".
" '^[-\\w]+$',1,32,NULL)");
" '^[-\\w]+\$',1,32,NULL)");
return 0;
}
1;
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