From 1954b2e22ea715df43ba1f0d3ea64528ad9ba0cd Mon Sep 17 00:00:00 2001 From: MK13 Date: Sat, 28 Sep 2019 22:03:54 +0200 Subject: [PATCH] Deployment of v19 failed Postgres has not DATETIME type, so change it to TIMESTAMP --- .../src/main/resources/database/postgres/V19_0_1__period.sql | 4 ++-- 1 file 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 33fa73d..32b267f 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 @@ -2,8 +2,8 @@ CREATE TABLE period ( id BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, type VARCHAR(255) NOT NULL, - start DATETIME NOT NULL, - "end" DATETIME + start TIMESTAMP NOT NULL, + "end" TIMESTAMP ); CREATE TABLE link_transaction_period (