Preview branches share one database #219
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#219
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?
Preview branches share one database, and build-time
migrate deployapplies each branch's migrations to it. Fine while branches run one at a time; if two branches with different migrations ever overlap, reset the preview database or give each branch its own (Prisma Postgres per branch).Moved from docs/history.md → Parked follow-ups on 2026-11-08.
What this is about. Every preview deploy (
vercel deploy --target preview) uses the same preview database, and each build applies its branch's migrations to it. If two branches with different migrations were previewed in turn, the second could find a schema it doesn't expect.Status (checked 2026-11-08): unchanged. Fine while branches are previewed one at a time.
Relevant soon: sessions 55 and 56 (#232, #233) both have migrations, and #233 is tested on preview. Run them in order, and reset the preview database if they ever overlap.