-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-806 - Add archive support for JDBC.
Co-authored-by: Oliver Drotbohm <[email protected]>
- Loading branch information
1 parent
8562cee
commit dab1031
Showing
17 changed files
with
271 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-h2-archive.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE | ||
( | ||
ID UUID NOT NULL, | ||
COMPLETION_DATE TIMESTAMP(9) WITH TIME ZONE, | ||
EVENT_TYPE VARCHAR(512) NOT NULL, | ||
LISTENER_ID VARCHAR(512) NOT NULL, | ||
PUBLICATION_DATE TIMESTAMP(9) WITH TIME ZONE NOT NULL, | ||
SERIALIZED_EVENT VARCHAR(4000) NOT NULL, | ||
PRIMARY KEY (ID) | ||
); | ||
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE_BY_LISTENER_ID_AND_SERIALIZED_EVENT_IDX ON EVENT_PUBLICATION_ARCHIVE (LISTENER_ID, SERIALIZED_EVENT); | ||
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE_BY_COMPLETION_DATE_IDX ON EVENT_PUBLICATION_ARCHIVE (COMPLETION_DATE); |
12 changes: 12 additions & 0 deletions
12
...-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-hsqldb-archive.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE | ||
( | ||
ID UUID NOT NULL, | ||
COMPLETION_DATE TIMESTAMP(9), | ||
EVENT_TYPE VARCHAR(512) NOT NULL, | ||
LISTENER_ID VARCHAR(512) NOT NULL, | ||
PUBLICATION_DATE TIMESTAMP(9) NOT NULL, | ||
SERIALIZED_EVENT VARCHAR(4000) NOT NULL, | ||
PRIMARY KEY (ID) | ||
); | ||
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE_BY_LISTENER_ID_AND_SERIALIZED_EVENT_IDX ON EVENT_PUBLICATION_ARCHIVE (LISTENER_ID, SERIALIZED_EVENT); | ||
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE_BY_COMPLETION_DATE_IDX ON EVENT_PUBLICATION_ARCHIVE (COMPLETION_DATE); |
11 changes: 11 additions & 0 deletions
11
...modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-mariadb-archive.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE | ||
( | ||
ID VARCHAR(36) NOT NULL, | ||
LISTENER_ID VARCHAR(512) NOT NULL, | ||
EVENT_TYPE VARCHAR(512) NOT NULL, | ||
SERIALIZED_EVENT VARCHAR(4000) NOT NULL, | ||
PUBLICATION_DATE TIMESTAMP(6) NOT NULL, | ||
COMPLETION_DATE TIMESTAMP(6) DEFAULT NULL NULL, | ||
PRIMARY KEY (ID), | ||
INDEX EVENT_PUBLICATION_ARCHIVE_BY_COMPLETION_DATE_IDX (COMPLETION_DATE) | ||
); |
11 changes: 11 additions & 0 deletions
11
...g-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-mysql-archive.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE IF NOT EXISTS EVENT_PUBLICATION_ARCHIVE | ||
( | ||
ID VARCHAR(36) NOT NULL, | ||
LISTENER_ID VARCHAR(512) NOT NULL, | ||
EVENT_TYPE VARCHAR(512) NOT NULL, | ||
SERIALIZED_EVENT VARCHAR(4000) NOT NULL, | ||
PUBLICATION_DATE TIMESTAMP(6) NOT NULL, | ||
COMPLETION_DATE TIMESTAMP(6) DEFAULT NULL NULL, | ||
PRIMARY KEY (ID), | ||
INDEX EVENT_PUBLICATION_ARCHIVE_BY_COMPLETION_DATE_IDX (COMPLETION_DATE) | ||
); |
Oops, something went wrong.