Commit 63b02309 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Change virt_nodes:type to length 30 instead of 12 (to match the rest

of the database).
parent 4576b4da
......@@ -1744,7 +1744,7 @@ CREATE TABLE virt_nodes (
startupcmd tinytext,
tarfiles text,
vname varchar(32) NOT NULL default '',
type varchar(12) default NULL,
type varchar(30) default NULL,
failureaction enum('fatal','nonfatal','ignore') NOT NULL default 'fatal',
routertype enum('none','ospf','static','manual','static-ddijk') NOT NULL default 'none',
fixed text NOT NULL,
......
......@@ -556,7 +556,7 @@ REPLACE INTO table_regex VALUES ('virt_nodes','deltas','text','regex','^([-\\w\\
REPLACE INTO table_regex VALUES ('virt_nodes','startupcmd','text','redirect','default:tinytext',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','tarfiles','text','regex','^([-\\w\\.\\/\\+]+\\s+[-\\w\\.\\/\\+:~]+;{0,1})*$',0,1024,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','vname','text','regex','^[-\\w]+$',1,32,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','type','text','regex','^[-\\w]*$',0,12,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','type','text','regex','^[-\\w]*$',0,30,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','failureaction','text','regex','^(fatal|nonfatal|ignore)$',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','routertype','text','regex','^(none|ospf|static|manual|static-ddijk)$',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_nodes','fixed','text','regex','^[-\\w]*$',0,10,NULL);
......
......@@ -1720,3 +1720,9 @@ last_net_act,last_cpu_act,last_ext_act);
default NULL after jail_osid;
alter table node_types add modelnetedge_osid varchar(35)
default NULL after modelnetcore_osid;
1.260: Change virt_nodes:type to length 30 instead of 12 (to match the rest
of the database).
alter table virt_nodes change type type varchar(30) default NULL;
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