Commit a8eaf85d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add description slot to instances table. Cannot be modified after

created.
parent 4fbd7445
......@@ -629,6 +629,7 @@ CREATE TABLE experiment_template_instances (
pid varchar(12) NOT NULL default '',
eid varchar(32) NOT NULL default '',
uid varchar(8) NOT NULL default '',
description tinytext,
start_time datetime default NULL,
stop_time datetime default NULL,
pause_time datetime default NULL,
......
......@@ -800,6 +800,7 @@ REPLACE INTO table_regex VALUES ('experiment_runs','runid','text','redirect','ex
REPLACE INTO table_regex VALUES ('experiment_runs','description','text','regex','^[\\040-\\176\\012\\015\\011]*$',1,256,NULL);
REPLACE INTO table_regex VALUES ('experiment_run_bindings','name','text','regex','^\\w[-\\w]+$',1,64,NULL);
REPLACE INTO table_regex VALUES ('experiment_run_bindings','value','text','redirect','default:tinytext',0,256,NULL);
REPLACE INTO table_regex VALUES ('experiment_template_instances','description','text','regex','^[\\040-\\176\\012\\015\\011]*$',1,256,NULL);
REPLACE INTO table_regex VALUES ('virt_node_motelog','vname','text','redirect','virt_nodes:vname',0,0,NULL);
REPLACE INTO table_regex VALUES ('virt_node_motelog','logfileid','text','regex','^[-\\w\\.+]+$',2,45,NULL);
REPLACE INTO table_regex VALUES ('virt_node_motelog','pid','text','redirect','projects:pid',0,0,NULL);
......
......@@ -3748,4 +3748,13 @@ last_net_act,last_cpu_act,last_ext_act);
4.96: Oops, forgot part of last revision!
alter table experiment_template_instances add \
locker_pid int(11) default '0',
locker_pid int(11) default '0';
4.97: Add description to instances table, to hold until the swapin is
done. Cannot be modified (yet).
**** Skip this stuff below if you just did 4.41 above.
alter table experiment_template_instances add \
description tinytext after uid;
......@@ -306,6 +306,8 @@ CREATE TABLE experiment_template_instances (
eid varchar(32) NOT NULL default '',
-- Creator of the instance.
uid varchar(8) NOT NULL default '',
-- A short description; not sure I really want this.
description tinytext,
-- A little bit of duplication ...
start_time datetime default NULL,
stop_time datetime 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