Second run of prisma migrate deploy fails #12452
Replies: 2 comments 12 replies
-
|
For some reason it thinks it does not exist and needs to be created again. Can you share some more information about your setup? Prisma version, what kind of migration is in the first run and so on? What database and version? Do you have some special permissions/grants/user setup on that database? |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, To keep our discussions organized and focused on the most relevant topics, we’re reviewing and tidying up our backlog. As part of this process, we’re closing discussions that haven’t had any recent activity and appear to be outdated. If this discussion is still important to you or unresolved, we’d love to hear from you! Feel free to reopen it or start a new one with updated details. For more details about our priorities and vision for the future of Prisma ORM, check out our latest blog post: https://www.prisma.io/blog/prisma-orm-manifesto. Thank you for your understanding and being part of the community! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have my startup script for CI setup to run
prisma migrate deploybefore running my main app process. On first run, the migration was successful. On second run (with no schema changes to the database) I ran into the following error:Error querying the database: db error: ERROR: relation "_prisma_migrations" already exists. Wondering why this table collision happens since the table should persist to track schema changes over time.Beta Was this translation helpful? Give feedback.
All reactions