db:pull refuses when local has a migration production lacks #81
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#81
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(session 43)
bun run db:pullrefuses whenever the local database has a migration production lacks, so it can't run on a branch with a new migration until it ships; an additive-only exception, or pulling before migrating, would help.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about.
bun run db:pullcopies production's data into your local database. It refuses if the two have different migrations, including when your branch has a new migration production doesn't have yet. So on a branch with a migration, you can't refresh local data until it ships.Status (checked 2026-11-08): unchanged (
scripts/db-pull.tscompares_prisma_migrations).Fix: pull first, then apply the branch's migrations on top, or allow the pull when the local-only migrations are additive. Sessions 55 and 56 (#232, #233) both need fresh data on a branch with migrations, so this may come up there.