Commit 3bc9b0ad authored by Leigh Stoller's avatar Leigh Stoller

Allow dataset to be a URL, as for importing from another cluster.

parent 1a11387a
......@@ -1264,7 +1264,7 @@ REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','pid','text','redi
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','eid','text','redirect','experiments:eid',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','vname','text','redirect','virt_blockstores:vname',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','attrkey','text','regex','^[-\\w]+$',1,64,NULL);
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','attrvalue','text','regex','^[-\\w\\.\\+,\\s\\/:]+$',0,255,NULL);
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','attrvalue','text','redirect','default:tinytext',0,255,NULL);
REPLACE INTO table_regex VALUES ('virt_blockstore_attributes','isdesire','int','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('emulab_sites','certificate','text','regex','^[\\012\\015\\040-\\176]*$',128,4096,NULL);
......
#
# Blockstore stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('virt_blockstore_attributes','attrvalue','text', ".
" 'redirect','default:tinytext',0,255,NULL)");
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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