diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql index 1258783f4..30d79690f 100644 --- a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql @@ -4,8 +4,8 @@ CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION ( LISTENER_ID VARCHAR2(512) NOT NULL, EVENT_TYPE VARCHAR2(512) NOT NULL, SERIALIZED_EVENT VARCHAR2(4000) NOT NULL, - PUBLICATION_DATE TIMESTAMP(6) NOT NULL, - COMPLETION_DATE TIMESTAMP(6), + PUBLICATION_DATE TIMESTAMP(6) WITH TIME ZONE default SYSTIMESTAMP NOT NULL, + COMPLETION_DATE TIMESTAMP(6) WITH TIME ZONE default SYSTIMESTAMP, CONSTRAINT EVENT_PUBLICATION_PK PRIMARY KEY(ID) ); CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_BY_LISTENER_ID_AND_SERIALIZED_EVENT_IDX ON EVENT_PUBLICATION (LISTENER_ID, SERIALIZED_EVENT);