Content-Length: 271938 | pFad | http://github.com/ruheni/db-diff

5E GitHub - ruheni/db-diff: A helper library built on top of the Prisma CLI for auto-generating and versioning customizable `up` and `down` migrations (compatible with Postgrator).
Skip to content
/ db-diff Public

A helper library built on top of the Prisma CLI for auto-generating and versioning customizable `up` and `down` migrations (compatible with Postgrator).

Notifications You must be signed in to change notification settings

ruheni/db-diff

Repository files navigation

db-diff

db-diff is a helper library built on top of the Prisma CLI for auto-generating and versioning customizable database migrations (compatible with Postgrator). By default, the library auto-generates both up and `down migrations when you run the command.

If you already have an existing Prisma schema in your project, run the following command

npm i --save-dev @ruheni/db-diff
npx db-diff

Optional arguments:

Option Arguments Default Description
--schema ./prisma/schema.prisma Path to your Prisma schema file.
--migrations-dir ./migrations Path to your migrations directory. If the folder will be created if it doesnn't exist
--up Generate only the up migration only
--down Generate only the down migration only

Example usage:

npx db-diff --migrations-dir ./src/migrations

Generate only the up migration:

npx db-diff --up

Generate only the down migration:

npx db-diff --down

About

A helper library built on top of the Prisma CLI for auto-generating and versioning customizable `up` and `down` migrations (compatible with Postgrator).

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ruheni/db-diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy