Damien Duhamel
09/21/2021, 7:56 AMDominic Hadfield
09/21/2021, 7:58 AMDamien Duhamel
09/21/2021, 8:10 AMDamien Duhamel
09/21/2021, 8:39 AMALTER INDEX "users.email_unique" RENAME TO "users_email_key";
But when I try to applied this migration it fails, simply because this index do not exist in my DB.
If I apply the migration without this renaming everything is ok.
Also when I verified if the index users.email_unique existed, it wasn’t but I found I had a lot of users_email_key_xx is it normal ?Dominic Hadfield
09/21/2021, 8:49 AMDamien Duhamel
09/21/2021, 9:00 AMDamien Duhamel
09/21/2021, 9:01 AMDominic Hadfield
09/21/2021, 9:02 AMusers.email_unique never existed?Dominic Hadfield
09/21/2021, 9:03 AMDominic Hadfield
09/21/2021, 9:03 AMDamien Duhamel
09/21/2021, 9:12 AMso theI find it nowherenever existed?users.email_unique
I have had instances where some indexes are dropped when restoring from a backupYep but Prisma try to rename it into
users_email_key , and this one already exist ...Dominic Hadfield
09/21/2021, 9:13 AMDamien Duhamel
09/21/2021, 12:51 PMDominic Hadfield
09/21/2021, 1:06 PM