# Ship risky schema changes with per-branch databases

DevFeed: [Ship risky schema changes with per-branch databases](<https://devfeed.tech/articles/ship-risky-schema-changes-with-per-branch-databases-47777.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/ship-risky-schema-changes-without-a-shared-staging-database>)

Author: Shane Neubauer; Ankur Datta

Published: 2026-07-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [Database](<https://devfeed.tech/topics/database.md>), [Prisma](<https://devfeed.tech/topics/prisma.md>), [migration](<https://devfeed.tech/topics/migration.md>), [staging](<https://devfeed.tech/topics/staging.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [migration](<https://devfeed.tech/tags/migration.md>), [prisma](<https://devfeed.tech/tags/prisma.md>), [pull-requests](<https://devfeed.tech/tags/pull-requests.md>), [staging](<https://devfeed.tech/tags/staging.md>)

## AI overview

A Prisma workflow gives each deployed branch an isolated Prisma Postgres database, preventing concurrent schema migrations from colliding in shared staging. The post explains how to rehearse destructive changes with the expand-and-contract pattern before production.

## Source excerpt

Prisma Compute gives every branch its own Prisma Postgres database. Rehearse expand-and-contract migrations in isolation before they touch production.