From b88b0b197a1d44d548900a324575ca4bfa999809 Mon Sep 17 00:00:00 2001 From: MK13 Date: Fri, 10 Mar 2023 22:45:25 +0100 Subject: [PATCH] Fix migration script --- .../src/main/resources/database/postgres/V19_0_1__period.sql | 2 +- financer-web-client/src/main/resources/static/changelog.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql b/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql index 69377ff..d899b38 100644 --- a/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql +++ b/financer-server/src/main/resources/database/postgres/V19_0_1__period.sql @@ -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'; \ No newline at end of file +SELECT 'EXPENSE_YEAR', start-INTERVAL '1 second' FROM period WHERE type = 'EXPENSE'; \ No newline at end of file diff --git a/financer-web-client/src/main/resources/static/changelog.txt b/financer-web-client/src/main/resources/static/changelog.txt index ebc707b..42f471e 100644 --- a/financer-web-client/src/main/resources/static/changelog.txt +++ b/financer-web-client/src/main/resources/static/changelog.txt @@ -1,5 +1,5 @@ v53 -> v54: -- +- Fix V19 migration script v52 -> v53: - Add new deployment profile