menu_book Course Curriculum (CI/CD & DevOps Pipelines) expand_more
Pipeline Foundations
Triggers, Change Detection & Concurrency
Build, Test & Quality Gates
Artifacts, Containers & Supply Chain
Secrets, Identity & Environment Controls
Deployment Strategies & Database Safety
Pipeline Engines & Reuse
Expand-contract database migration
Learn Expand-contract database migration through a production-oriented CI/CD example, operational guidance, and a mastery check.
12 min read
•
Advanced
expand-contract.sql
sql
-- Expand: safe while old application versions still run.
ALTER TABLE customers ADD COLUMN display_name VARCHAR(160) NULL;
-- Backfill in controlled batches before switching reads.
UPDATE customers
SET display_name = full_name
WHERE display_name IS NULL AND id BETWEEN 1 AND 10000;
-- Contract happens in a later release after old code is gone.
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content