redid relationships of transactions/categories

This commit is contained in:
Finn 2018-01-16 13:07:12 +00:00
parent 1f70f9b40a
commit 8a0f933f07
19 changed files with 5245 additions and 2 deletions

View file

@ -0,0 +1,16 @@
-- 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;