diff options
Diffstat (limited to 'sqitch/deploy/change_derivation_source_file_nars_constraint.sql')
-rw-r--r-- | sqitch/deploy/change_derivation_source_file_nars_constraint.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sqitch/deploy/change_derivation_source_file_nars_constraint.sql b/sqitch/deploy/change_derivation_source_file_nars_constraint.sql new file mode 100644 index 0000000..b8e96a2 --- /dev/null +++ b/sqitch/deploy/change_derivation_source_file_nars_constraint.sql @@ -0,0 +1,13 @@ +-- Deploy guix-data-service:change_derivation_source_file_nars_constraint to pg + +BEGIN; + +ALTER TABLE derivation_source_file_nars + DROP CONSTRAINT derivation_source_file_nars_derivation_source_file_id_fkey; + +ALTER TABLE derivation_source_file_nars + ADD CONSTRAINT derivation_source_file_nars_derivation_source_file_id_fkey + FOREIGN KEY (derivation_source_file_id) REFERENCES derivation_source_files(id) + ON DELETE CASCADE; + +COMMIT; |