Prisma CLI 8.0.0-rc.37 ships with Prisma ORM 8.0.0-rc.26 and Composer 0.41.0, and pins both exactly. Upgrade the three together.
How to install it
This release is published under the npm dist-tag next. latest stays on 8.0.0-rc.36 until the release is promoted. Until then, install it by its version:
npm install --save-dev --save-exact prisma@8.0.0-rc.37From this release on, every CLI release reaches next first, and a maintainer moves latest to it after checking it together with the ORM and Composer releases it ships with (#421). This brings next back as a staging tag. It no longer points at an old release candidate, the problem that got it retired in #415.
Upgrading from 8.0.0-rc.36
- Upgrade
prismato 8.0.0-rc.37, every@prisma/orm-*package to 8.0.0-rc.26 and every@prisma/composer*package to 0.41.0, in everypackage.jsonthat lists one. - Follow the ORM's upgrade guide for 8.0.0-rc.25 to 8.0.0-rc.26. It moves the records Prisma keeps in your database to a new schema. Until you sign each existing database with
prisma db sign --no-advance-ref,prisma db verifyandprisma migration statusstop withCONTRACT.PRISMA_SPACE_BEHIND. Do not follow thedb updateadvice thatdb migrateprints on a database that is not yet signed. - If you deploy with Composer, follow its guide for 0.41.0:
targetRefis now required onpostgres().- When
targetRefnames a ref, for example the environment's name, its file inmigrations/app/refs/must exist before the deploy, or the deploy stops withMIGRATION.UNKNOWN_REF. Create it withprisma migration ref set <name> <hash>.
What's new
prisma migration ref policy set,showanddeleterecord how an environment's database may change (#420). Choose whether changes go through migrations,db updateor both, and whether a change may lose data or widen who can read or write data. The commands only edit the ref's file.- An ORM or Composer command now stops with
CLI.SECOND_PACKAGE_COPYwhen theprismayou ran would load a different copy of the ORM packages than your project's own (#417). Run the project's ownprismainstead, usually from the package's directory. prisma deploydeploys a repository with nocomposersection in its config as a single Service (#419).- Service commands name the branch they will act on before you confirm (#410).
--branchwith a branch the project does not have fails withSERVICE.BRANCH_NOT_FOUND(#414).
Full Changelog: v8.0.0-rc.36...v8.0.0-rc.37