Hey, how would I generate a full .sql migration fi...
# orm-help
d
Hey, how would I generate a full .sql migration file as if my db was brand new?
👀 1
n
Hey 👋 You can follow these commands to get the sql file without needing to reset your dev environment.
d
I followed these commands and am erroring out.
When running the migrate:
Error: P3006
`Migration
init
failed to apply cleanly to the shadow database.`
Error:
db error: ERROR: relation "Post" already exists
0: migration_core::state::DevDiagnostic
at migration-engine/core/src/state.rs:250
Ah ok, so I created the database file as is provided, but how do I return to the default usage of
npx prisma migrate dev
so that I can use it again