guix-data-service/sqitch/deploy/make_some_constraints_deferrable.sql
Christopher Baines e5a6680808 Make a constraint deferrable
To allow for deferring it in a transaction when deleting derivations.
2020-02-16 22:28:37 +00:00

8 lines
237 B
PL/PgSQL

-- 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;