Joel
Joel
PPrisma
Created by Giovani Granzotto on 12/5/2024 in #help-and-questions
Migration containing DML statements hangs mysteriously
Have you tried running that SQL directly against your test db without prisma? To see if it's the SQL itself that's hanging
11 replies
PPrisma
Created by Giovani Granzotto on 12/5/2024 in #help-and-questions
Migration containing DML statements hangs mysteriously
Prisma may have some logic before/after, but I'm pretty sure it does just run the SQL file. I've used prisma migrations for modifying data between schema changes, for example renaming a TYPE value by 1. adding a new possible value to the TYPE, 2. updating data to use the new value, 3. removing the old value from the TYPE https://github.com/amelioro/ameliorate/blob/3506c2aa1a52112c2d9197f2c38e16cf59102721/src/db/migrations/20240927095951_rename_embodies_to_fulfills/migration.sql#L10
11 replies