any idea what would cause a migration to randomly ...
# prisma-migrate
m
any idea what would cause a migration to randomly try to rename all of my indexes?
m
m
I’ve been on 3 for a while now though
m
Maybe it's your first migration? Not sure but looking at your SQL, those index names are pre 3.x and 3.x (after RENAME). So I would look at those links I've sent you
m
weird ok
I had this in my schema:
Copy code
@@unique([userId, roleId], name: "userRoleUnique")
but the migration it wants to generate renames it
Copy code
-- RenameIndex
ALTER INDEX "userRoleUnique" RENAME TO "UserRole_userId_roleId_key";
is that right?
oh it’s
map
now
f
Hey Mischa - we are thinking about releasing some additional commands in migrate to help with diffing (prisma schema|migrations history|database schema). If that sounds interesting please take a look at the proposal and leave a like or comment: https://github.com/prisma/prisma/issues/10561
m
I don’t have a great way to run migrate commands inside my VPC right now sadly, I’m trying to do it with lambdas
👍 1
f
ok, let us know how it goes with the lambdas!