From 1482ba01f57f70e04394314d759856334448234d Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Mon, 16 Oct 2023 14:01:25 +0200 Subject: [PATCH] GH-310 - Revert "Remove time zone from Postgres event publication schema." This reverts commit 19457cd736ecc180665d57ab7e4301836b1315ac. Related ticket: GH-306. --- .../src/main/resources/schema-postgresql.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql index a208b4c4..bd8bd6d7 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-postgresql.sql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS event_publication listener_id TEXT NOT NULL, event_type TEXT NOT NULL, serialized_event TEXT NOT NULL, - publication_date TIMESTAMP NOT NULL, - completion_date TIMESTAMP, + publication_date TIMESTAMP WITH TIME ZONE NOT NULL, + completion_date TIMESTAMP WITH TIME ZONE, PRIMARY KEY (id) )