Gabe O'Leary
10/21/2021, 7:44 PMThe 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?Gabe O'Leary
10/21/2021, 7:45 PM-- AlterTable
ALTER TABLE "Status" ADD COLUMN "favoriteCount" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "retweetCount" INTEGER NOT NULL DEFAULT 0;
Gabe O'Leary
10/21/2021, 7:51 PMGabe O'Leary
10/21/2021, 7:51 PMGabe O'Leary
10/21/2021, 8:10 PMAustin
10/22/2021, 6:48 PMGabe O'Leary
10/22/2021, 6:50 PMprisma migrate dev
Austin
10/26/2021, 3:46 PM