aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy/make_some_constraints_deferrable.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sqitch/deploy/make_some_constraints_deferrable.sql')
-rw-r--r--sqitch/deploy/make_some_constraints_deferrable.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqitch/deploy/make_some_constraints_deferrable.sql b/sqitch/deploy/make_some_constraints_deferrable.sql
new file mode 100644
index 0000000..af03544
--- /dev/null
+++ b/sqitch/deploy/make_some_constraints_deferrable.sql
@@ -0,0 +1,8 @@
+-- Deploy guix-data-service:make_some_constraints_deferrable to pg
+
+BEGIN;
+
+ALTER TABLE derivations_by_output_details_set
+ ALTER CONSTRAINT derivations_by_output_details_set_derivation_id_fkey DEFERRABLE INITIALLY IMMEDIATE;
+
+COMMIT;