Migrate: Add ability to define schema path for prisma migrate cli to help output

Created on 11 Apr 2020  路  3Comments  路  Source: prisma/migrate

Problem

Prisma generate accepts a --schema argument for when your schema doesn't live in prisma/.

Prisma migrate also has this option, but does not document it in the --help output.

Solution

Document --schema to prisma migrate, same as prisma generate.

kinbug tectypescript

Most helpful comment

Updated the issue to indicate that this is "only" missing in the --help output and thus hard/impossible to discover.

All 3 comments

@flybayer Prisma migrate also accepts --schema in the args. For eg.

npx prisma migrate up -c --auto-approve --schema="path/to/schema/schema.prisma" --experimental does work.

One other feature which was filed by @janpio here: https://github.com/prisma/migrate/issues/361 is to use --migrations which is not yet supported.

Updated the issue to indicate that this is "only" missing in the --help output and thus hard/impossible to discover.

New output 馃挴

Screen Shot 2020-04-15 at 17 56 53

Was this page helpful?
0 / 5 - 0 ratings