@prisma/orm-toolchain 8.0.0-rc.19-dev.5 → 8.0.0-rc.19-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -40,7 +40,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
40
40
  import stringWidth from "string-width";
41
41
  import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
42
42
  import { build } from "esbuild";
43
- //#region ../../../1-framework/3-tooling/cli/dist/load-config-BQPlFj6H.mjs
43
+ //#region ../../../1-framework/3-tooling/cli/dist/load-config-8vRcnzNe.mjs
44
44
  /**
45
45
  * `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the
46
46
  * regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts
@@ -11687,6 +11687,36 @@ const ormCommandFamily = defineCommandFamily({
11687
11687
  flag: "ref",
11688
11688
  replacement: "{bin} migration status --to <contract>",
11689
11689
  reason: "One flag names the target contract, whether it is a ref, a hash or a migration."
11690
+ },
11691
+ {
11692
+ from: "migrate dev",
11693
+ replacement: "{bin} contract emit",
11694
+ reason: "Prisma 8 emits the contract, plans the migration and applies it in separate steps: run `contract emit`, then `migration plan --name <name>` (for `--create-only`, stop here), then `db migrate --advance-ref db`; while Prisma 7 still owns this project's migrations, run `migrate dev` with Prisma 7's CLI instead."
11695
+ },
11696
+ {
11697
+ from: "migrate deploy",
11698
+ replacement: "{bin} db migrate",
11699
+ reason: "`db migrate` applies the planned migrations; while Prisma 7 still owns this project's migrations, run `migrate deploy` with Prisma 7's CLI instead."
11700
+ },
11701
+ {
11702
+ from: "migrate status",
11703
+ replacement: "{bin} migration status",
11704
+ reason: "`migration status` reports which planned migrations the database has applied; while Prisma 7 still owns this project's migrations, run `migrate status` with Prisma 7's CLI instead."
11705
+ },
11706
+ {
11707
+ from: "migrate diff",
11708
+ replacement: "{bin} db update --dry-run",
11709
+ reason: "`db update --dry-run` prints the changes between the contract and a live database without applying them; to write the changes between two contracts as a migration package use `migration plan`, and to report drift use `db verify`."
11710
+ },
11711
+ {
11712
+ from: "migrate reset",
11713
+ replacement: "{bin} db migrate",
11714
+ reason: "Prisma 8 never drops a database: drop and recreate it with your database's own tools, then `db migrate` applies every migration; while Prisma 7 still owns this project's migrations, run `migrate reset` with Prisma 7's CLI instead."
11715
+ },
11716
+ {
11717
+ from: "migrate resolve",
11718
+ replacement: "{bin} db sign <migration>",
11719
+ reason: "`db sign <migration>` checks that the database already has that migration's schema and moves the database marker to that migration's contract, so `db migrate` continues after it; `migration status` does not list the migration as applied. Use it where you would run `migrate resolve --applied` after applying a migration's changes by hand. While Prisma 7 still owns this project's migrations, run `migrate resolve` with Prisma 7's CLI instead."
11690
11720
  }
11691
11721
  ]
11692
11722
  });