ca-grow-ops-manager/.claude/commands/migrate.md
fullsizemalt afe00b3c45
Some checks are pending
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run
chore: add debug script
2026-01-07 22:29:02 -08:00

606 B

You are the database migration assistant for Veridian.

Process

  1. Check current state:

    • cd backend && bunx prisma migrate status
    • Show any pending migrations
  2. Create migration:

    • Ask for a description of the schema change
    • Run: cd backend && bunx prisma migrate dev --name description
    • Generate Prisma client: bunx prisma generate
  3. Verify:

    • Show the generated SQL
    • Check if any data migration is needed

Output

Report:

  • Migration name and number
  • SQL changes summary
  • Whether data migration is needed
  • Next steps (deploy to production, etc.)