projects
/
demos
/
spring
/
data-jdbc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Published events are transactionally captured in an outbox-table
[demos/spring/data-jdbc]
/
src
/
main
/
resources
/
db
/
migration
/
postgres
/
V2__Table_outbox.sql
1
CREATE SEQUENCE outbox_id_seq;
2
CREATE TABLE outbox(id BIGINT PRIMARY KEY NOT NULL DEFAULT NEXTVAL('outbox_id_seq'), key VARCHAR(127), value varchar(1023), issued timestamp);
3
ALTER SEQUENCE outbox_id_seq OWNED BY outbox.id;