In short.
Prisma Postgres Upgrade is a coding-assistant skill for maintainers upgrading PostgreSQL apps from Prisma ORM 6 or 7 to Prisma 8, but its documented path requires query rewrites and depends on version-specific behavior. It covers schema adoption, migration baselining, client replacement and before-and-after checks. The snapshot specifies release-candidate packages for Compute deployments and flags timestamp, template and clean-install failures. The author reports success on one example application; broader compatibility and migration safety are not independently established.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied manifest establishes complete coverage of prisma-postgres-upgrade/SKILL.md, references/adopt-schema-and-migrations.md, references/client-api-mapping.md and references/verify-upgrade-checklist.md at commit a6f192959cf43b08aa330fe1ffca090267215812. The repository-level LICENSE is included as the related notice outside that folder. Linked guides, synchronized Prisma 8 and platform skills, package implementations and Compute deployment instructions are outside this evidence. No installation, command, migration or application was run. Runtime correctness, production safety, broader compatibility, performance and service costs remain unverified or unknown.
The overview
Identity
The skill identifies Prisma as its author and declares version 2.0.0. It consists of instructions a coding assistant can load, supported by three references covering schema adoption, client API mapping and verification.
Its scope is a direct upgrade of an existing Node.js PostgreSQL application from Prisma ORM 6 or 7 to Prisma 8. The source folder is [https://github.com/prisma/skills/tree/main/prisma-postgres-upgrade].
Assessment
The skill is useful for a team planning to replace its old Prisma client across the application in one pass. Its concrete value is the connection between upgrade steps and easily missed failures: a fresh install losing the generated client, templates reading obsolete result shapes, and timestamp behavior changing despite successful compilation.
Suitability depends on existing project checks, coverage of every database call and review of the installed Prisma 8 guidance. The supplied documents do not establish that arbitrary applications can complete this upgrade without regressions.
Users
The intended users maintain PostgreSQL applications already using Prisma ORM 6 or 7, including applications preparing for Prisma Compute. According to the skill, Compute requires Prisma 8.
The workflow assumes someone can review TypeScript configuration, database queries, migration history and application behavior. Beginners would benefit from an experienced maintainer reviewing the result. Database-owner involvement is explicitly required for non-UTC time-zone decisions, signing other existing databases and reviewing the change before release.
Capabilities
The documents describe retaining schema.prisma and the existing database and data while replacing configuration, creating Prisma 8 contract files, establishing a migration baseline, rewriting queries and removing the old client. They also cover CommonJS TypeScript settings, seed-script changes and cleanup of generated client files.
The API reference maps reads, unique lookups, relation counts, nested creation, bulk writes, aggregates, enums and a raw SQL health check. Deployment and ongoing Prisma 8 development are assigned to separate skills.
Using it
Requirements
The documented starting point is a Node.js application using PostgreSQL, Prisma ORM 6 or 7, an existing schema.prisma and a database connection supplied through DATABASE_URL. Repository access, dependency installation and access to the existing local database are assumed.
For Compute-bound applications, this snapshot specifies exact versions: prisma 8.0.0-rc.27 as a development dependency and @prisma/orm-postgres 8.0.0-rc.20. It gives versions named by the Console or an existing setup pull request precedence. Node.js 24.11 or newer is specified when running under prisma dev; a general minimum outside that condition is not stated.
The procedure depends on separately synchronized prisma-8, prisma-platform-core-concepts and prisma-composer-core-concepts skills. Their contents are outside the supplied folder.
Mechanism
The configuration uses prisma7Schema(...) to read the existing Prisma 6 or 7 schema without manually translating it. The procedure emits contract.json and contract.d.ts, signs the existing database and plans a baseline under migrations/app/. These files must be committed because the documented Prisma 8 workflow has no generate step to recreate them in CI.
Application queries then use a new client whose calls start at db.orm.public.<Model> and chain operations. The old prisma/migrations folder is retired after establishing the new baseline. The database's existing _prisma_migrations table remains unless its owner decides to remove it.
Setup
The folder does not supply a universal command for installing itself into an assistant. Its application-upgrade sequence begins by recording the repository's existing checks, replacing dependencies with exact versions and removing prisma generate from scripts.
Next, it creates the new prisma.config.ts and runs npx prisma skills sync. For Prisma 7 applications, the configuration must be replaced before synchronization because the old format can produce CLI.CONFIG_UNREADABLE. The skills.agents setting can limit which assistants receive synchronized files.
The remaining sequence emits the contract and signs the existing database, creates the baseline, rewrites application queries, removes the old client and adapter, deletes node_modules/.prisma and performs a fresh installation followed by the original checks.
Example
For a board identified by a unique slug, the reference uses db.orm.public.Board.where({ slug }).first(). It warns that whereUnique does not accept the unique indexes produced from the older schema's @unique or @@unique declarations.
For a post's vote count, the supplied example uses .include("votes", (v) => v.count()). The resulting count is read as post.votes, so an EJS template using post._count.votes must change too. This illustrates why rewriting queries alone can leave runtime failures in files the TypeScript compiler does not check. These examples were not executed.
Assessment & evidence
Limitations
The reference warns that @prisma/orm-postgres 8.0.0-rc.20 may return DateTime values as strings, breaking calls such as toISOString(). It also says @default(now()) is filled by the database at that version, which can change stored timestamp values when the database time zone is not UTC.
Removing prisma generate before completing the rewrite can break fresh installations because the old client will no longer be generated. Some operations, including increment in an update, are described as lacking a Prisma 8 equivalent at the documented point.
The folder relies on external, version-matched Prisma 8 guidance and does not document a rollback or database-recovery procedure. Compatibility across every PostgreSQL feature, application framework and assistant version is not established.
Reasoning
The design keeps the existing schema to avoid errors introduced by hand-translating it into a different contract format. The new baseline also serves a concrete deployment need: the reference says Compute creates databases from migrations/app/, so omitting it would leave newly created databases without application tables.
Its verification approach compares identical project checks before and after the change, helping distinguish existing failures from upgrade regressions. Manual comparisons can expose template failures, but passing checks still establish only the behavior they cover.
Alternatives
The skill points to the official PostgreSQL upgrade guide as its source of truth: [https://www.prisma.io/docs/guides/upgrade-prisma-orm/postgresql]. For a Prisma 7 application adopting Prisma 8 route by route, it instead points to [https://www.prisma.io/docs/guides/upgrade-prisma-orm/postgresql-incremental]. Those linked pages were not supplied.
It directs new projects to prisma-orm-setup, MongoDB upgrades to prisma-mongodb-upgrade, applications staying on Prisma 7 to prisma-upgrade-v7, and existing Prisma 8 projects to the synchronized prisma-8 skill. Their implementations and comparative quality are not established by these files.
Evidence
The source snapshot was captured at 2026-11-16T07:33:47.394Z and pinned to commit a6f192959cf43b08aa330fe1ffca090267215812. The corresponding folder is [https://github.com/prisma/skills/tree/a6f192959cf43b08aa330fe1ffca090267215812/prisma-postgres-upgrade]. It contains SKILL.md and the three supplied reference documents, accompanied by the repository licence.
The author reports that two agents upgraded one Prisma ORM 6.19 application using Express 4, EJS, TypeScript and CommonJS on PostgreSQL 18 with the stated release-candidate packages. The source claims identical page and API output and a passing prisma db verify result. Supporting command logs and the example application's files are not included, so these remain author-reported results. No commands or application upgrades were executed for this assessment.
Access & freshness
Costs
The MIT notice grants permission to use and redistribute the skill without a licence fee. The supplied files give no prices for a coding assistant, database hosting, Prisma services or Compute; those costs are unknown.
No migration-duration estimates, token-use measurements or infrastructure-cost measurements are supplied. The amount of application code requiring changes will depend on its database calls, templates and seed scripts.
Rights
The repository notice is the MIT License, copyright 2025 Prisma. It permits use, modification, distribution, sublicensing and sale, provided the copyright and permission notice remain with copies or substantial portions. It also disclaims warranties and liability.
These terms support redistribution of the skill and its reference documents with the notice included. They do not establish the licences or service terms of separately installed dependencies, linked documentation or hosted services.
Freshness
Version 2.0.0 and the November 16, 2026 snapshot identify the documented state; no separate publication or last-update date is supplied. Its use of release-candidate packages makes the exact snapshot particularly relevant.
The file's version pair is not a guarantee of current compatibility. It explicitly warns that the latest packages can conflict with the Composer version installed by Console setup, and tells users to follow versions named by their Console or setup pull request. Current release status and compatibility beyond the snapshot are unknown.
Actions
Before adopting the skill, confirm that the application fits the direct PostgreSQL upgrade path and resolve the package versions against its intended deployment. Record the existing type-check, build, lint and test results, confirm the app starts and connects, and record SHOW timezone. A non-UTC database needs an explicit owner decision about timestamp behavior.
During review, inspect queries, templates, plain JavaScript, enum imports, date handling and seed scripts. Confirm the contract and migration files are committed and old client imports are gone. Finish with a fresh installation, the same baseline checks, prisma db verify and an application start. Useful read-only page comparisons should be described as manual comparisons.
Have the database owner handle signing other existing databases and review the change before release. If the repository has no tests, state that limitation and identify behavior left unverified.
