Skip to content

v8.0.0-rc.37

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 09:12
Immutable release. Only release title and notes can be modified.
d613f48

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.37

From 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

  1. Upgrade prisma to 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 every package.json that lists one.
  2. 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 verify and prisma migration status stop with CONTRACT.PRISMA_SPACE_BEHIND. Do not follow the db update advice that db migrate prints on a database that is not yet signed.
  3. If you deploy with Composer, follow its guide for 0.41.0:
    • targetRef is now required on postgres().
    • When targetRef names a ref, for example the environment's name, its file in migrations/app/refs/ must exist before the deploy, or the deploy stops with MIGRATION.UNKNOWN_REF. Create it with prisma migration ref set <name> <hash>.

What's new

  • prisma migration ref policy set, show and delete record how an environment's database may change (#420). Choose whether changes go through migrations, db update or 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_COPY when the prisma you ran would load a different copy of the ORM packages than your project's own (#417). Run the project's own prisma instead, usually from the package's directory.
  • prisma deploy deploys a repository with no composer section in its config as a single Service (#419).
  • Service commands name the branch they will act on before you confirm (#410). --branch with a branch the project does not have fails with SERVICE.BRANCH_NOT_FOUND (#414).

Full Changelog: v8.0.0-rc.36...v8.0.0-rc.37