v8.0.0-rc.28
This release fixes what upgrading two real projects to 8.0.0-rc.27, and the prisma CLI's own check, found in the upgrade instructions, the 8.0.0-rc.25 to 8.0.0-rc.26 upgrade scripts and two CLI messages. It changes nothing an application must do: the upgrade guides from 8.0.0-rc.27 have no entries.
The upgrade guides for this release: the app guide and the extension guide, which have no entries. The 8.0.0-rc.25 to 8.0.0-rc.26 guides are corrected in this release: the app guide and the extension guide.
A project on 8.0.0-rc.26 or earlier has the upgrade reference of its release installed, whose first step reads an older copy of the guides. Before upgrading such a project, read this release's upgrade-app.md (or upgrade-extension.md for an extension) and follow it from its first step.
The ORM commands of this release need the prisma version whose @prisma/orm-toolchain dependency is 8.0.0-rc.28, which is published shortly after this release.
Fixes
- An upgrade reads the newest instructions. The upgrade instructions ship inside the packages, and an agent upgrading from an older release used to read the copy of the first step's release, without the corrections later releases make to it. The upgrade references now have the agent download the newest published release, read every step's guide from it and run its scripts from it, and sync the skill only when the upgrade is done. (#31346)
- The upgrade references run detection patterns with a script. The
rg --pcre2command they gave could not run patterns that look back an unbounded distance, as two of 8.0.0-rc.27's do. The skill now hasreferences/scripts/find-detection-hits.ts, which finds the same files as Prisma's own detection, and skips a broken link. (#31346) MIGRATION.SIGNATURE_NOT_IN_GRAPHsays when an earlier release migrated the database. On a database an earlier release migrated, this error used to adviseprisma db update, which the upgrade guide told readers to ignore. When the database's ledger shows that an earlier release, which computed contract hashes by other rules, migrated it, the error now says so and points to the signing step of the 8.0.0-rc.25 to 8.0.0-rc.26 upgrade guide, which says when and how to sign. It suggests no command. In other cases its advice is as before. (#31346)prisma contract emitwarns about a snapshot it cannot update. When the migration snapshot of the emitted contract cannot take the emitted capabilities and profile hash, because it cannot be read, fails its content check, is for another target, has no profile or fails validation, emit leaves it as it is and warns withMIGRATION.CONTRACT_SNAPSHOT_PROFILE_NOT_UPDATED, naming the snapshot, the reason and what to do. It used to say nothing. (#31346)- The 8.0.0-rc.25 to 8.0.0-rc.26 scripts:
contract-hash-inputsleaves an intermediate contract (a contract beside a data migration'smigration.ts) as it is and exits 0 when that is all that is left; it refuses a migration snapshot whose mutation-default refs still use the keys from before 8.0.0-rc.13, and gives the command of the 8.0.0-rc.12 to 8.0.0-rc.13 script that renames them. The message of the two scripts that need TypeScript 5 or 6 gives instructions that work, the one that changes nothing in the project first. (#31346) - The upgrade guides: the 8.0.0-rc.26 to 8.0.0-rc.27 entry about the boolean codec of a condition says it applies only to MySQL, MariaDB and SQLite projects; the upgrade references say that a step's own guide can tell the reader to take a later release in the same step. (#31346)