summaryrefslogtreecommitdiffstats
path: root/migrations/2020-10-29-143003_create_submit_envs/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/2020-10-29-143003_create_submit_envs/up.sql')
-rw-r--r--migrations/2020-10-29-143003_create_submit_envs/up.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/migrations/2020-10-29-143003_create_submit_envs/up.sql b/migrations/2020-10-29-143003_create_submit_envs/up.sql
new file mode 100644
index 0000000..1be7c2e
--- /dev/null
+++ b/migrations/2020-10-29-143003_create_submit_envs/up.sql
@@ -0,0 +1,8 @@
+-- Your SQL goes here
+CREATE TABLE submit_envs (
+ id SERIAL PRIMARY KEY NOT NULL,
+ submit_id INTEGER REFERENCES submits(id) NOT NULL,
+ env_id INTEGER REFERENCES envvars(id) NOT NULL,
+
+ CONSTRAINT UC_submitid_envid UNIQUE (submit_id, env_id)
+)