-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODINVOSTO-187] Create outbox log and internal lock tables
- Loading branch information
1 parent
1765582
commit e142bc7
Showing
3 changed files
with
21 additions
and
0 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
6 changes: 6 additions & 0 deletions
6
src/main/resources/templates/db_scripts/tables/create_audit_outbox_table.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,6 @@ | ||
CREATE TABLE IF NOT EXISTS outbox_event_log ( | ||
event_id uuid NOT NULL PRIMARY KEY, | ||
entity_type text NOT NULL, | ||
action text NOT NULL, | ||
payload jsonb | ||
); |
5 changes: 5 additions & 0 deletions
5
src/main/resources/templates/db_scripts/tables/create_internal_lock_table.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,5 @@ | ||
CREATE TABLE IF NOT EXISTS internal_lock ( | ||
lock_name text NOT NULL PRIMARY KEY | ||
); | ||
|
||
INSERT INTO internal_lock(lock_name) VALUES ('audit_outbox') ON CONFLICT DO NOTHING; |