Create EXPENSE_YEAR period for new instances
This commit is contained in:
@@ -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';
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user