• Blog
  • Docs
  • Pricing
12.3k
Log inSign up
  1. Glossary
  2. /
  3. Schema Migrations
  4. /
  5. Expand / Contract Pattern

Expand / Contract Pattern

Schema MigrationsOpen Source

A two-phase migration strategy: Expand adds the new schema elements alongside the old ones. Contract removes the old elements after all applications have migrated to the new schema. Enables zero-downtime changes.

Related terms

Zero-Downtime Migrationpgroll
← Back to glossary

Branch-native Postgres

Envelope

Product

  • Instant Provisioning
  • Branching
  • Scale-to-Zero
  • Data Anonymization
  • Schema Changes
  • BYOC

Solutions

  • Production
  • Previews
  • Pull Requests
  • CI/CD
  • AI Agents
  • Platforms

Resources

  • Xata vs Neon
  • Glossary
  • GitHub

Developers

  • Docs
  • Open Source
  • Status
  • Support

Company

  • About
  • Blog
  • Careers
  • Brand

© Copyright 2026 Xatabase Inc. All Rights Reserved.

Privacy PolicySecurityTerms of Use