-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db pull
can't parse script setting default value
#23453
Comments
What error are you getting? |
Hello! Thank you for the answer :) Here is the error:
To reproduce it you would need to connect to my database. |
db pull
can't parse script setting default value
Hey @Alicia-bites, is there any chance you could share with us your sql database schema? Even privately if needed. That would help us a lot to reproduce your issue. Thank you 🙏 |
(For us the default is just ignored and not represented in the Prisma schema: #12150) |
@Alicia-bites I investigated this problem a bit further, and it seem that the error message is slightly misleading. The |
I actually figured it out: #24275 The comment before the actual SQL is the problem. |
Bug description
When I try to introspect the database, I get an error about a script that sets a default value for a column as 'Non'.
Here is the script :
How to reproduce
npx prisma db pull
Expected behavior
The introspection get all the tables from the database and translate them into models in schema.prisma
Prisma information
npx prisma db pull
schema :
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: