Skip to content

Instantly share code, notes, and snippets.

@rob-gordon
Created July 30, 2024 15:06
Show Gist options
  • Save rob-gordon/310a9ea3596e37ffd9a23ef8ccb633d1 to your computer and use it in GitHub Desktop.
Save rob-gordon/310a9ea3596e37ffd9a23ef8ccb633d1 to your computer and use it in GitHub Desktop.
Reset Prisma DB
rm -rf prisma/migrations
echo 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;' | npx prisma db execute --stdin
npx prisma migrate dev --name init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment