Skip to content

From Prisma Postgres

Tested with: Generic connection-string flow · zb migrate 0.1 · no Prisma Postgres preset yet

Prisma Postgres databases move to Databasezy PostgreSQL with a copy. Your Prisma schema and client keep working; only the connection string changes.

Prisma Postgres migration at a glance, from the migration source catalogue
Status Coming soon · phase 2
Target engines PostgreSQL
How we read it Connection string
Continuous sync No, copy only
Provider preset None yet (generic)
  • A Databasezy PostgreSQL instance, or use --create.
  • A direct TCP connection string for the database.
  • A short write freeze for the copy.

In the Prisma console, open the database and create a direct connection string (postgres://...). The prisma+postgres:// URL goes through Accelerate and cannot be used by pg_dump.

  • Use a direct TCP connection string, not the Accelerate (prisma+postgres://) URL.

After the switch, set DATABASE_URL to the Databasezy connection string and run prisma migrate status to confirm the migration history came across. See the Prisma framework guide.

  1. Open the target PostgreSQL instance (create one first if you need to) and choose the Migrate in tab.
  2. Under Source, pick Connection string and paste the URL.
  3. Run Preflight and work through the checklist. Blocking items must be fixed before the copy starts.
  4. Start the copy and follow Copy and Verify. Mismatches are listed per table or collection.
  5. Point your application at the new instance. The Report step keeps the timings and verification results.

Verification runs automatically after the copy and compares source and target: row counts per table, sequence or AUTO_INCREMENT values, the number of indexes and a schema hash. A missing table or a short row count fails the migration and lists what differs. Check the result with zb migrate status <mig_id> or the Verify step in the portal, then run your application’s own smoke tests against the new instance before you switch traffic.

This source is copy only. Writes that reach the source after the copy starts are not carried over, so for a database that changes, stop writes before you start the copy (maintenance mode, or scale writers to zero), run the migration, check verification, then point the application at the Databasezy connection string.

A migration never deletes anything on the source. Until you decommission it, rolling back means pointing the application back at the source. Writes made on Databasezy after you switched are not on the source; if you need them, copy them back before switching. Cancel a running migration with zb migrate cancel <mig_id>; partially restored data stays on the target, so restart with --drop-target or delete the instance.

It is the prisma+postgres:// Accelerate URL. Create a direct connection string instead.

Check that the source accepts connections from the egress addresses preflight prints, that the host is the public one and that the password has not been rotated. zb migrate --dry-run shows the exact URL that will be used after any rewrites.

Each item has a machine code and a fix. Nothing is written to the target until every blocking item is resolved; warnings do not block.

The source uses an extension Databasezy does not ship. Drop it on the source if it is unused, or exclude the objects that depend on it with --exclude.

For anything else, zb migrate status <mig_id> shows the failing step and its message. How migrations work describes every step.