Make database migration safe and obvious for Vercel installs.
Current state:
- Migrations exist and are run manually through
scripts/migrate.ts.
- External operators need a safe, documented way to initialize and upgrade the database.
Acceptance:
- Fresh install path includes a clear migration step or safe first-run migration mechanism.
- Migrations are idempotent and concurrency-safe in the deployment path.
- Failures surface as actionable setup/admin diagnostics, not generic 500s.
- Upgrade docs explain when and how migrations run.
- The approach works with Supabase Postgres in Vercel/serverless conditions.
Make database migration safe and obvious for Vercel installs.
Current state:
scripts/migrate.ts.Acceptance: