Create EXPENSE_YEAR period for new instances

This commit is contained in:
2022-05-17 23:09:58 +02:00
parent bb8c2afed6
commit c0de315cb6
4 changed files with 11 additions and 1 deletions

View File

@@ -17,3 +17,6 @@ CREATE TABLE link_transaction_period (
INSERT INTO period (type, start)
VALUES ('EXPENSE', NOW());
INSERT INTO period (type, start)
SELECT 'EXPENSE_YEAR', DATEADD(SECOND, -1, start) FROM period WHERE type = 'EXPENSE';

View File

@@ -17,3 +17,6 @@ CREATE TABLE link_transaction_period (
INSERT INTO period (type, start)
VALUES ('EXPENSE', NOW());
INSERT INTO period (type, start)
SELECT 'EXPENSE_YEAR', DATEADD(SECOND, -1, start) FROM period WHERE type = 'EXPENSE';