Hi I am getting a conflicting message after runnin...
# orm-help
b
Hi I am getting a conflicting message after running prisma migrate dev on existing production database:
Copy code
[*] Changed the `addresses` table
  [-] Removed foreign key on columns (entity_id)
  [+] Added foreign key on columns (entity_id)

[*] Changed the `entity_metadata` table
  [-] Removed foreign key on columns (tag_id)
  [+] Added foreign key on columns (tag_id)
j
It’s saying that I removed and added same foreign key on the same column?
Are you using SQLite maybe?
WHat’s the content of the migration file?
b
@Jonas No it’s postgres, could the reason be that name of foreign keys is different?
👍 1
j
It would help if you could share your migration file I think here
b
For privacy reasons I would rather not
👍 1
the migration containts creation of the tables. What I did was -> I had existing development DB run prisma db pull to create a schema. Then run https://github.com/prisma/prisma/issues/11555#issuecomment-1027242342 , because I was getting a drift detected error
this worked nicely on my local db and I wanted to do the same on production which is almost identical except seems like name for foreign keys
I’ve changed names of foreing keys in prisma scheme and migration file to see if that helps, but it didnt
j
Could you share the migration file in private message? (or part of it maybe?) Did you upgrade the Prisma version recently maybe?
b
@Joël send a PM