AIniverse Get the App

Migration Until Applied

Data by loops! by elorm

Run database migrations, fix schema issues, and loop until migrations apply cleanly in dev.

Prompt

Step 1 — Run migrations
Apply pending migrations with the project's migration command.

Check: `npx prisma migrate dev`

Step 2 — Fix schema errors
If migration fails, fix schema or SQL, regenerate client if needed, and retry.

Step 3 — Verify
Confirm migration history is consistent and app still starts.

Check: `npx prisma migrate status`

Step 4 — Repeat until done
Repeat the steps above until: All migrations applied with clean status

Check with: `npx prisma migrate status`

Stop after 6 iterations and report what is blocking.
Platforms
CLAUDE

Use this prompt in AIniverse

Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.

Open in App

More Data prompts

Analyze a Dataset

Go from a raw dataset to defensible insights.