prisma migrate gives: Error querying the database: db error: ERROR: syntax error at or near "NOT" #6026
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: migrate
topic: postgresql
Milestone
Bug description
prisma migrate dev --preview-feature
is failing with Error querying the database: db error: ERROR: syntax error at or near "NOT"The full debug output is:
How to reproduce
I am not entirely sure what the exact steps that lead to the problem are, but hopefully the following is helpful:
I had deleted the previous migrations folder by accident, which had a single migration file in it. This migration file set up a basic User model.
After seeing the above errors, I did try a complete refresh of the database (dropped and recreated), as well as uninstall/reinstall and reset of prisma. Unfortunately the problem persisted.
Expected behavior
prisma migrate
to run normally and create the migration sql.Prisma information
My current prisma schema is:
Environment & setup
Thanks for your time!
The text was updated successfully, but these errors were encountered: