Commit 86e4644d authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add dpdbname field to experiments and experiment_stats. Non-null means

the user has requested a per-experiment DB on ops (or wherever the DP
is). As you see, its an optional thing that will probably only be used
for templates.
parent dc3f298e
......@@ -446,9 +446,11 @@ CREATE TABLE experiment_resources (
delay_capacity tinyint(3) unsigned default NULL,
batchmode tinyint(1) unsigned default '0',
archive_tag varchar(32) NOT NULL default '',
opsdbname varchar(64) default NULL,
thumbnail mediumblob,
PRIMARY KEY (idx),
KEY exptidx (exptidx),
KEY exptidx (exptidx),
KEY lastidx (lastidx)
) TYPE=MyISAM;
......@@ -509,6 +511,7 @@ CREATE TABLE experiment_stats (
security_level tinyint(1) NOT NULL default '0',
archive_idx int(10) unsigned default NULL,
last_error int(10) unsigned default NULL,
dpdbname varchar(64) default NULL,
PRIMARY KEY (eid,pid,exptidx),
KEY exptidx (exptidx),
KEY rsrcidx (rsrcidx)
......@@ -800,6 +803,7 @@ CREATE TABLE experiments (
locpiper_pid int(11) default '0',
locpiper_port int(11) default '0',
instance_idx int(10) unsigned NOT NULL default '0',
dpdbname varchar(64) default NULL,
PRIMARY KEY (eid,pid),
KEY idx (idx),
KEY batchmode (batchmode),
......
......@@ -3378,3 +3378,8 @@ last_net_act,last_cpu_act,last_ext_act);
alter table experiment_runs add \
archive_tag varchar(32) NULL after description;
4.62: Add a slot to the hold the name of optional per-experiment DB.
alter table experiments add dpdbname varchar(64) default NULL;
alter table experiment_stats add dpdbname varchar(64) 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