Repository navigation
CI: migrations can't collide or be renamed (sc-9611) - #262
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…w ones sort after main's (sc-9611)
…ied migrations fail, unreachable base warns (review)
This branch has not been deployed
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.
Sixth PR for sc-9611: migrations can't collide. It's stacked on #261 and retargets as the stack merges.
laravel-rust runs migrations in file-name order and records each by name (
laravel-rust-database0.1.4: the macro sorts the files, andpending()skips the names already recorded). New scriptscripts/ci/check_migrations.sh(ported from fleetlayer'sscripts/check-migrations, adapted to timestamped names) checks three things, in thecli-versionjob besidemigration_safety.py:app/database/migrations/isYYYY_MM_DD_HHMMSS_snake_case.rs.Shared timestamps (three
2026_12_06_000000_*today) aren't collisions: the names differ, and the rest of the name orders them.It starts green: 20 migrations, all named right, and nothing new against main. AGENTS.md says how to name one.
Checked locally, with planted cases: an older-dated new migration, a renamed one, and a badly named file each exit 1 with a message saying what to do.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.