redid relationships of transactions/categories
This commit is contained in:
parent
1f70f9b40a
commit
8a0f933f07
19 changed files with 5245 additions and 2 deletions
16
share/ddl/PostgreSQL/upgrade/20-21/001-auto.sql
Normal file
16
share/ddl/PostgreSQL/upgrade/20-21/001-auto.sql
Normal 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;
|
||||
|
Reference in a new issue