diff options
Diffstat (limited to 'migrations/2020-12-14-100454_artifact-unique-by-job/up.sql')
-rw-r--r-- | migrations/2020-12-14-100454_artifact-unique-by-job/up.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/migrations/2020-12-14-100454_artifact-unique-by-job/up.sql b/migrations/2020-12-14-100454_artifact-unique-by-job/up.sql new file mode 100644 index 0000000..3749514 --- /dev/null +++ b/migrations/2020-12-14-100454_artifact-unique-by-job/up.sql @@ -0,0 +1,6 @@ +-- Your SQL goes here +ALTER TABLE + artifacts +ADD CONSTRAINT + path_job_id_unique + UNIQUE (path, job_id) |