Fix migration script

This commit is contained in:
2023-03-10 22:45:25 +01:00
parent 84c3a94bfc
commit b88b0b197a
2 changed files with 2 additions and 2 deletions

View File

@@ -19,4 +19,4 @@ 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';
SELECT 'EXPENSE_YEAR', start-INTERVAL '1 second' FROM period WHERE type = 'EXPENSE';