Does Prisma support executing PostgreSQL anonymous code blocks?
We created incident in prouction recently when we just blindly executed migration on huge table and it locked the whole table.
We got to conclusion that we need to do some stuff in small batches manually. Maybe even by writing custom script. I looked at this thread on git, and I see there are no plans to support it in near future - https://github.com/prisma/prisma/issues/15384
Luckily, some of our migrations can be done using pure SQL, so writing custom script looks unnecessary.
My question is: will Prisma execute custom migration file with content like this?
Thanks.
We got to conclusion that we need to do some stuff in small batches manually. Maybe even by writing custom script. I looked at this thread on git, and I see there are no plans to support it in near future - https://github.com/prisma/prisma/issues/15384
Luckily, some of our migrations can be done using pure SQL, so writing custom script looks unnecessary.
My question is: will Prisma execute custom migration file with content like this?
Thanks.
GitHub
Problem Prisma migrate only provides a way to modify the db schema, which is insufficient for building an application. Expecting users to write raw sql to modify data and/or handle data migrations ...