[Introspection] "The model 'x' cannot be defined because a model with that name already exists." #1504
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
topic: introspection
Milestone
Error message:
Schema:
https://github.com/prisma/introspection-engine-output/blob/8e75a5342e388bc4b7eb8220976af011484422aa/prisma1-old/email-jesper-madsen%40dev.log#L207-L261
https://github.com/prisma/introspection-engine-output/blob/8e75a5342e388bc4b7eb8220976af011484422aa/prisma1-old/email-jesper-madsen%40dev.log#L1898-L1906
Original tables are called
_CampaignDraft
andCampaignDraft
. THe former one needs to be renamed because starting with_
is not allowed, so@@map("_CampaignDraft")
rewrites that. That code does not seem to take into account that it could create duplicates - so we need some logic to check and work around that.The text was updated successfully, but these errors were encountered: