Rolling Out a Schema Change Across Versions
A schema change can be introduced in compatible steps when older and newer application versions temporarily share a database.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a new field
First allow older writes to omit the field. Then populate existing rows and move reads to the new representation. Add a strict requirement after all supported writers respect it. See adding columns for existing records.
Test both supported versions during transition
Exercise legacy and new records and verify which version wrote each. Progressive rollout explains why overlap can occur.[1]