[ON HOLD] docs: prisma guide for anon extension #1634
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I ran into this issue today when using Prisma with Neon. Running
prisma db push
resulted in an error:cannot drop type anon_fake_data_tables because extension anon requires it
.Specifying the enum in schema.prisma resolved the issue. I used
prisma db pull
to obtain the schema. We could instruct readers to runprisma db pull
, or simply add the enum entry as I specify in this PR.Edit: Following our other Prisma guide worked fine. It seems to account for the extension during the initial migration. I tried to double check using a new project, but it seems enabling the
anon
extension isn't working at the moment.