I tried to perform a prisma migrate on a table wit...
# orm-help
g
I tried to perform a prisma migrate on a table with ~30k records which took ~30 minutes after which I cancelled it and now when I retry it I get this message:
Copy code
The migration `...` failed.
? We need to reset the PostgreSQL database "..." at "...".      
Do you want to continue? All data will be lost. » (y/N)
also if I try to query the table on which the migration was attempted it runs for minutes without returning anything... Seems like I've corrupted my DB. Luckily I don't care that much about this data, but I would like to know what likely went wrong so I can avoid it in the future. This table does have a JSON column with a potentially sizeable amount of data....is that what might've resulted in the migration command taking so long? Also I had datagrip connected to the db when I triggered the migrate...is this an issue?
also the migration was really simple:
Copy code
-- AlterTable
ALTER TABLE "Status" ADD COLUMN     "favoriteCount" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN     "retweetCount" INTEGER NOT NULL DEFAULT 0;
also it looks like even if I agree to have my DB reset migrate still seems to hang...
(v3.2.1 of prisma)
upgraded to 3.3 to no avail...guess I'll manually reset my DB
a
Hey Gabe 👋, What specific command were you running when you got the migration error?
g
Hey Austin! I believe it was:
prisma migrate dev
a
Would you mind filling out a bug report? I've been chatting with our engineering teams and they would like to take a close look at this one. Thanks so much for providing all this info!