Commit 37811c83 authored by Kirk Webb's avatar Kirk Webb

Add new table_regex rows to update script for storage schema.

Didn't realize these went into the update script as well.
parent 26cd6c57
......@@ -85,7 +85,41 @@ sub DoUpdate($$$)
" KEY `nidbid` (`node_id`,`bs_id`)".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','pid','text','redirect',".
"'projects:pid',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','eid','text','redirect',".
"'experiments:eid',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','vname','text','regex',".
"'^[-\\w]+$',1,32,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','type','text','regex',".
"'^[-\\w]*$',0,30,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','role','text','regex',".
"'^(remote|local)$',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','size','int','redirect',".
"'default:int',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','pid','text','redirect',".
"'projects:pid',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','eid','text','redirect',".
"'experiments:eid',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','vname','text','redirect',".
"'virt_blockstores:vname',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','attrkey','text','regex',".
"'^[-\\w]+$',1,64,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','attrvalue','text','regex',".
"'^[-\\w\\.\\+,\\s\\/:]+$',0,255,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