Skip to main content
pgschema works with a full schema. Either the ORM itself or a custom program is needed to generate that full schema. Benefits over ORM’s built-in migrations:
  1. Concurrent change detection: Prevents conflicts when multiple developers modify the database
  2. Online DDL: Safe migrations with minimal downtime
Drizzle supports exporting the full schema with drizzle-kit export:
If the ORM doesn’t support exporting full schema, you need to write a small program. Here’s an example for TypeORM: