Skip to content

Commit a5e8249

Browse files
author
mihaita.tinta
committed
add default timezone to fix ojdbc11 read issue 1194
Signed-off-by: mihaita.tinta <mihaita.tinta@ing.com>
1 parent b594b69 commit a5e8249

File tree

1 file changed

+2
-2
lines changed
  • spring-modulith-events/spring-modulith-events-jdbc/src/main/resources

1 file changed

+2
-2
lines changed

spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION (
44
LISTENER_ID VARCHAR2(512) NOT NULL,
55
EVENT_TYPE VARCHAR2(512) NOT NULL,
66
SERIALIZED_EVENT VARCHAR2(4000) NOT NULL,
7-
PUBLICATION_DATE TIMESTAMP(6) NOT NULL,
8-
COMPLETION_DATE TIMESTAMP(6),
7+
PUBLICATION_DATE TIMESTAMP(6) WITH TIME ZONE default SYSTIMESTAMP NOT NULL,
8+
COMPLETION_DATE TIMESTAMP(6) WITH TIME ZONE default SYSTIMESTAMP,
99
CONSTRAINT EVENT_PUBLICATION_PK PRIMARY KEY(ID)
1010
);
1111
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_BY_LISTENER_ID_AND_SERIALIZED_EVENT_IDX ON EVENT_PUBLICATION (LISTENER_ID, SERIALIZED_EVENT);

0 commit comments

Comments
 (0)