This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Migration causes 'Duplicate key name' #148
Labels
Milestone
Comments
@stansm : I tried this with alpha Did you try this repro from scratch or did the DB had some data/migration info already? What DB are you using? I tried it on SQLite and it seems to work. |
divyenduz
added
bug/0-needs-info
More information is needed for reproduction.
kind/bug
A reported bug.
labels
Sep 26, 2019
Able to reproduce this with MySQL
|
divyenduz
added
bug/2-confirmed
We have confirmed that this is a bug.
process/candidate
Candidate for next Milestone.
and removed
bug/0-needs-info
More information is needed for reproduction.
labels
Sep 26, 2019
tomhoule
added a commit
to prisma/prisma-engines
that referenced
this issue
Sep 30, 2019
Issue: prisma/migrate#148 This does not resolve all ambiguities. A more general solution would involve including the index name in the inferred Index struct.
tomhoule
added a commit
to prisma/prisma-engines
that referenced
this issue
Sep 30, 2019
Issue: prisma/migrate#148 This does not resolve all ambiguities. A more general solution would involve including the index name in the introspected Index struct.
tomhoule
added a commit
to prisma/prisma-engines
that referenced
this issue
Sep 30, 2019
Issue: prisma/migrate#148 This does not resolve all ambiguities. A more general solution would involve including the index name in the introspected Index struct.
tomhoule
added a commit
to prisma/prisma-engines
that referenced
this issue
Sep 30, 2019
Issue: prisma/migrate#148 This does not resolve all ambiguities. A more general solution would involve including the index name in the introspected Index struct.
tomhoule
added a commit
to prisma/prisma-engines
that referenced
this issue
Oct 1, 2019
Issue: prisma/migrate#148 This does not resolve all ambiguities. A more general solution would involve including the index name in the introspected Index struct.
This should be fixed by prisma/prisma-engines#80 It was an issue with how we read indexes from MySQL that caused the migration engine to try to create indexes that already existed. The fix will be in the next preview :) |
Reopening while this is not in alpha 🙏 |
A fix for this was merged to alpha 9 days ago. It will be released as a normal preview tomorrow. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Prisma schema:
Modifying
User
model:Causes unique index to be created again on the
Skill
model:Probably relates to #133
Prisma2 version:
2.0.0-alpha.205
The text was updated successfully, but these errors were encountered: