This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/PostgreSQL/upgrade/20-21/001-auto.sql

16 lines
391 B
PL/PgSQL

-- Convert schema 'share/ddl/_source/deploy/20/001-auto.yml' to 'share/ddl/_source/deploy/21/001-auto.yml':;
;
BEGIN;
;
ALTER TABLE transaction_category DROP CONSTRAINT transaction_category_fk_category_id;
;
ALTER TABLE transaction_category ADD CONSTRAINT transaction_category_fk_category_id FOREIGN KEY (category_id)
REFERENCES category (id) ON DELETE CASCADE DEFERRABLE;
;
COMMIT;