Repository navigation
chore(migrations): resync the schema-snapshot chain - #616
Merged
Merged
Conversation
The highest-timestamp snapshot on main (20260803_221051_registrations_full_flag.json) was stale: it merged in via PR #601, whose registrations_full migration was generated before #605/#608's schema landed (region level `venue`, events contact_email / address_venue_name, translations event_title). Those migrations are timestamped earlier than 0803 but merged later — the out-of-order snapshot trap in .claude/rules/migrations.md. The next migrate:create would have diffed against that stale snapshot and re-emitted the already-applied DDL. This lands a no-op migration whose regenerated .json reflects the full current schema, so the chain is healed: migrate:create now detects no changes (verified). The .ts does nothing — every column already ships in an earlier migration. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-616 environment in sahajcloud
|
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-616
August 4, 2026 01:32
Destroyed
This branch was successfully 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.
Summary
Heals the migration schema-snapshot chain on
main. Follow-up to #601.When #601 merged, its
20260803_..._registrations_fullmigration became the highest-timestamp entry — but its.jsonsnapshot was generated before #605/#608's schema landed (region levelvenue, eventscontact_email/address_venue_name, translationsevent_title). Those migrations are timestamped earlier than0803but merged later, so0803.jsonwas left stale (the "out-of-order snapshot trap" documented in.claude/rules/migrations.md).Left as-is, the next
pnpm db:migrations:createwould diff against that stale snapshot and re-emit the already-applied DDL (ADD COLUMN contact_email, thecenter→venueenum recreate, …) — which fails on deploy.Change
A single no-op migration,
20260804_011222_resync_schema_snapshot:.tsdoes nothing — every column it would "add" already ships in an earlier migration in the chain..jsonis the regenerated, now-cumulative snapshot (full current schema). This is the entire point: it becomes the new highest-timestamp snapshot, so futuremigrate:creatediffs from the true current schema.Verification
pnpm db:migrations:createnow reports no schema changes (the cumulative snapshot matches the config) — confirms the chain is healed.pnpm typecheck+pnpm lintpass.🤖 Generated with Claude Code