Commit d42dddc8 authored by Leigh Stoller's avatar Leigh Stoller

Increase virt_vtype name from 12 to 32 characters.

parent 20eec48e
......@@ -3488,7 +3488,7 @@ CREATE TABLE `virt_vtypes` (
`pid` varchar(12) NOT NULL default '',
`eid` varchar(32) NOT NULL default '',
`exptidx` int(11) NOT NULL default '0',
`name` varchar(12) NOT NULL default '',
`name` varchar(32) NOT NULL default '',
`weight` float(7,5) NOT NULL default '0.00000',
`members` text,
PRIMARY KEY (`exptidx`,`name`),
......
......@@ -691,7 +691,7 @@ REPLACE INTO table_regex VALUES ('virt_trafgens','target_ip','text','redirect','
REPLACE INTO table_regex VALUES ('virt_trafgens','generator','text','redirect','default:tinytext',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','pid','text','redirect','projects:pid',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','eid','text','redirect','experiments:eid',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','name','text','regex','^[-\\w]+$',1,12,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','name','text','regex','^[-\\w]+$',1,32,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','weight','float','redirect','default:float',0,1,NULL);
REPLACE INTO table_regex VALUES ('virt_vtypes','members','text','regex','^([-\\w]+ ?)+$',0,1024,NULL);
REPLACE INTO table_regex VALUES ('default','tinytext','text','regex','^[\\040-\\176]*$',0,256,NULL);
......
......@@ -4109,3 +4109,8 @@ last_net_act,last_cpu_act,last_ext_act);
4.126: The recent changes made to the firewalls table in step3_newids.pl were
omitted. Nothing to do unless you had already passed version 4.109 .
Otherwise, re-run ./step3_newids.pl .
4.127: Increase vtype name from 12 to 32 chars.
alter table virt_vtypes change name
`name` varchar(32) NOT NULL default '';
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