from Hacker News

Ask HN: Data Migrations with Prisma

by dkpk on 2/16/24, 3:06 PM with 0 comments

Let’s consider the following example:

On an existing model “User”, I’ve added a non-nullable column with a default value.

This table has data in production and now I want to basically run a data migration to fill up existing records.

I can get away by writing a one off script and executing it on production database locally, but I am looking for a solution that I can integrate with CI pipeline.