Skip to content

Ask HN: Data Migrations with Prisma

1 pointdkpkdiscuss
On HN

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.

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.