Conversation
Ship canonical H2, MySQL, and PostgreSQL schema files in the outbox-jdbc JAR under schema/. Add a GitHub Actions workflow that diffs schema changes on PRs using sqldef. Update README with multi-dialect table. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The GITHUB_TOKEN needs explicit write permission to post PR comments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Schema DiffH2New file (no baseline on main). MySQL-- dry run --
BEGIN;
CREATE TABLE outbox_event (
event_id VARCHAR(36) PRIMARY KEY,
event_type VARCHAR(128) NOT NULL,
aggregate_type VARCHAR(64),
aggregate_id VARCHAR(128),
tenant_id VARCHAR(64),
payload JSON NOT NULL,
headers JSON,
status TINYINT NOT NULL,
attempts INT NOT NULL DEFAULT 0,
available_at DATETIME(6) NOT NULL,
created_at DATETIME(6) NOT NULL,
done_at DATETIME(6),
last_error TEXT,
locked_by VARCHAR(128),
locked_at DATETIME(6)
);
CREATE INDEX idx_status_available ON outbox_event(status, available_at, created_at);
COMMIT;PostgreSQL-- dry run --
BEGIN;
CREATE TABLE outbox_event (
event_id VARCHAR(36) PRIMARY KEY,
event_type VARCHAR(128) NOT NULL,
aggregate_type VARCHAR(64),
aggregate_id VARCHAR(128),
tenant_id VARCHAR(64),
payload JSONB NOT NULL,
headers JSONB,
status SMALLINT NOT NULL,
attempts INT NOT NULL DEFAULT 0,
available_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL,
done_at TIMESTAMPTZ,
last_error TEXT,
locked_by VARCHAR(128),
locked_at TIMESTAMPTZ
);
CREATE INDEX idx_status_available ON outbox_event(status, available_at, created_at);
COMMIT; |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OutboxDispatcherwith requiredconnectionProvider,eventStore,listenerRegistry(aggregateType, eventType)withAggregateType.GLOBALdefaultacceptingflag,shutdown()+awaitTerminationwith configurable drain timeoutdetect(DataSource)auto-detectionschema/EventStore/OutboxEvent/EventStatusTest plan
mvn test— all 141 tests passmvn -pl outbox-jdbc package -DskipTests— schema files present in JAR🤖 Generated with Claude Code