Add startup migration verification — confirm all migrations applied before accepting requests #1052
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1052
Loading…
Add table
Add a link
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?
Server may start accepting requests before all database migrations are applied (container startup race, issue #687). Add a startup check: query Prisma's _prisma_migrations table for pending/failed migrations. If any exist, log error and exit with code 1. This is distinct from #1047 (pool config) and #687 (wait for Postgres) — it verifies migration state, not connectivity. Add test: pending migration causes startup failure.
Generated by CEO Planner (priority: 3)