Changed logic of storing recurring transactions
This commit is contained in:
parent
38dc29f4a1
commit
98cd134d84
21 changed files with 7702 additions and 17 deletions
19
share/ddl/PostgreSQL/upgrade/28-29/001-auto.sql
Normal file
19
share/ddl/PostgreSQL/upgrade/28-29/001-auto.sql
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- Convert schema 'share/ddl/_source/deploy/28/001-auto.yml' to 'share/ddl/_source/deploy/29/001-auto.yml':;
|
||||
|
||||
;
|
||||
BEGIN;
|
||||
|
||||
;
|
||||
ALTER TABLE transaction_recurring ADD COLUMN category_id integer;
|
||||
|
||||
;
|
||||
CREATE INDEX transaction_recurring_idx_category_id on transaction_recurring (category_id);
|
||||
|
||||
;
|
||||
ALTER TABLE transaction_recurring ADD CONSTRAINT transaction_recurring_fk_category_id FOREIGN KEY (category_id)
|
||||
REFERENCES category (id) DEFERRABLE;
|
||||
|
||||
;
|
||||
|
||||
COMMIT;
|
||||
|
Reference in a new issue