You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This throws an error when running zenstack generate
Error: Prisma schema validation - (get-dmmf wasm)
Error code: P1012
error: The prefix db is invalid. It must be equal to the name of an existing datasource e.g. postgresql. Did you mean to use postgresql.VarChar?
--> schema.prisma:298
|
297 | model alembic_version {
298 | version_num String @id(map: "alembic_version_pkc") @db.VarChar(32)
|
Validation Error Count: 1
[Context: getDmmf]
Then in vscode i get Could not resolve reference to Attribute named '@postgresql.VarChar'.zmodel(linking-error)
and when trying to generate i get
Validation errors:
line 330: Could not resolve reference to Attribute named '@postgresql.VarChar'. [@postgresql.VarChar]
error Command failed with exit code 1.
The second option should be the right one since is what prisma expects (it's generated by prisma db pull)
Any ideas?
Environment (please complete the following information):
"zenstack": "1.12.3"
"prisma": "^5.12.1",
Database type: Postgresql
The text was updated successfully, but these errors were encountered:
Description and expected behavior
Hi, i have a model in the schema that looks like
This throws an error when running
zenstack generate
If i change to
Then in vscode i get
Could not resolve reference to Attribute named '@postgresql.VarChar'.zmodel(linking-error)
and when trying to generate i get
The second option should be the right one since is what prisma expects (it's generated by prisma db pull)
Any ideas?
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: