Skip to content

refactor(schema): split baseline migrations by domain#45

Merged
RomeoCavazza merged 1 commit into
mainfrom
chore/split-baseline-migrations
Jun 25, 2026
Merged

refactor(schema): split baseline migrations by domain#45
RomeoCavazza merged 1 commit into
mainfrom
chore/split-baseline-migrations

Conversation

@RomeoCavazza

Copy link
Copy Markdown
Member

Splits the schema migrations into domain-oriented files so the migration folder is readable at a glance: users, teams/RBAC, auth sessions, incidents, timeline, external secrets, timeline reactions, bans, private messages, and releases.\n\nAlso marks .sqlx/** as GitHub Linguist generated so the SQLx offline cache no longer pollutes language/diff stats as product code.\n\nValidation:\n- Fresh disposable DB migration smoke passed with all 10 migrations.\n- cargo test -p opswarden-server passed.\n- SQLX_OFFLINE=true cargo check -p opswarden-server passed.\n- cargo fmt --all -- --check passed.\n- git diff --check passed.\n\nImportant alpha caveat: this rewrites migration history for readability. Existing local/dev databases with the old migration versions should be reset before running this branch/main after merge, e.g. docker compose down -v && docker compose up --build.

@RomeoCavazza RomeoCavazza merged commit e1e69de into main Jun 25, 2026
15 checks passed
@RomeoCavazza RomeoCavazza deleted the chore/split-baseline-migrations branch June 25, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant