Closed flybayer closed 2 years ago
@flybayer it looks like this is because blitz generator has the version of prisma-ast hardcoded to v0.2.4, and that bug was fixed in the next release:
blitz/packages/generator/package.json
-"@mrleebo/prisma-ast": "0.2.4",
+"@mrleebo/prisma-ast": "^0.2.5",
Should be easily fixed by updating the dependency
What is the problem?
If you have any use of
@db.Text
inside your prisma schema, runningblitz generate model newModelName
will change@db.Text
to @Text` which is a bug.What are detailed steps to reproduce this?
Start with this in your schema
Then run
blitz generate model testA
. It will convert above use of@db.Text
to @Text`(Note I'm using mysql)
Run
blitz -v
and paste the output here:0.44.0