Skip to content
Snippets Groups Projects
Commit c1d2e495 authored by Leo Gordon's avatar Leo Gordon
Browse files

relaxing the constraint to allow multiple templates per branch

parent 7e457ff7
No related branches found
No related tags found
No related merge requests found
# relaxing this constraint we allow more than 1 template per from-to-branch combination:
# (unfortunately, it does not make NULLs unique)
ALTER TABLE dataflow_rule DROP INDEX from_analysis_id;
ALTER TABLE dataflow_rule ADD UNIQUE KEY (from_analysis_id, to_analysis_url, branch_code, input_id_template(512));
......@@ -64,7 +64,7 @@ CREATE TABLE dataflow_rule (
input_id_template TEXT DEFAULT NULL,
PRIMARY KEY (dataflow_rule_id),
UNIQUE KEY (from_analysis_id, to_analysis_url, branch_code)
UNIQUE KEY (from_analysis_id, to_analysis_url, branch_code, input_id_template(512))
);
......
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