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

17 lines
391 B
MySQL
Raw Permalink Normal View History

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