diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-11 12:17:40 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-11 12:17:40 +0100 |
commit | f2a7e47327fb8a766b220cd9f1f257cd37abe017 (patch) | |
tree | 1ef5b06442dd2c023ff109d070a94bd6fed92a30 /migrations | |
parent | c1ef0e4be3374ca2048b503a2d4ed407d1edef59 (diff) |
Alter "jobs" table, because a job can have multiple outputs
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'migrations')
-rw-r--r-- | migrations/2020-11-11-111326_job_has_multiple_outputs/down.sql | 5 | ||||
-rw-r--r-- | migrations/2020-11-11-111326_job_has_multiple_outputs/up.sql | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/migrations/2020-11-11-111326_job_has_multiple_outputs/down.sql b/migrations/2020-11-11-111326_job_has_multiple_outputs/down.sql new file mode 100644 index 0000000..b495fb7 --- /dev/null +++ b/migrations/2020-11-11-111326_job_has_multiple_outputs/down.sql @@ -0,0 +1,5 @@ +-- This file should undo anything in `up.sql` +ALTER TABLE + jobs +ADD COLUMN + artifact_id INTEGER REFERENCES artifacts(id) NOT NULL diff --git a/migrations/2020-11-11-111326_job_has_multiple_outputs/up.sql b/migrations/2020-11-11-111326_job_has_multiple_outputs/up.sql new file mode 100644 index 0000000..a2ee1d3 --- /dev/null +++ b/migrations/2020-11-11-111326_job_has_multiple_outputs/up.sql @@ -0,0 +1,5 @@ +-- Your SQL goes here +ALTER TABLE + jobs +DROP COLUMN + artifact_id |