Metadata and modeling
Data model change management: branches, reviews and approvals
Contents
A data model is a shared agreement: applications, reports, interfaces and people all rely on it. Changing it the way one edits a private document, directly and without review, is how integrations break and definitions drift. Data model change management brings to models what version control brought to code: changes made in isolation, reviewed, approved and recorded.
In short
- Treat a data model like code: change it on a branch, review the differences, and merge when approved.
- Every change gets an impact analysis before it is approved, and the right reviewers: data architects, data owners, consumers.
- Breaking changes are introduced in steps (expand and contract) so that consumers can move without an outage.
- Keep the documented model and the databases in step, by harvesting the real schema and reviewing the differences.
- Record who changed what and when, and keep a second pair of eyes on governed decisions.
Why data models need change management
- Many consumers. A table feeds applications, pipelines, reports and outside parties; a change in one place is felt in many.
- Definitions matter. A changed attribute definition changes the meaning of every report built on it.
- Drift. Without a process, the documented model and the real databases diverge, and the documentation stops being trusted.
- Accountability. Regulators and auditors ask who approved a change to critical data and why.
Branches, differences and merges
| Practice | What it means for data models |
|---|---|
| Branch | Work on a copy of the model, named after the change, while the main version stays the agreed one |
| Difference | A clear list of added, removed and modified entities, attributes, types, keys and relationships |
| Review | Data architects check design and standards; data owners check meaning; consumers check impact |
| Merge | The approved branch becomes the new main version, recorded with who merged it and when |
| History | Every version and change kept, so that any past state can be explained |
A review should check at least:
- Design: normalization, keys, relationships and reuse of existing entities. See conceptual, logical and physical data models.
- Standards: names and types follow the naming conventions.
- Meaning: new attributes are linked to business terms with approved definitions.
- Impact: what the change reaches downstream. See data impact analysis.
- Protection: new columns with personal or confidential data are classified.
Who approves what
| Change | Reviewer | Approver |
|---|---|---|
| New optional attribute in one system | Data architect | Data architect |
| New entity or relationship | Data architect, data steward | Architecture board |
| Change to the meaning of a critical data element | Data steward, consumers | Data owner |
| Breaking change to a shared interface | Consumers | Data owner, after the agreed notice |
| Change to a policy, a definition or a code list | Data steward | A second person, never the requester |
The four-eyes principle, where the person who proposes a change cannot be the one who approves it, is a simple control that auditors recognize.
Breaking changes: expand and contract
A breaking change, such as renaming a column, splitting a field or changing a type, should not land in one step. The expand-and-contract pattern, also called parallel change, spreads it out:
- Expand. Add the new structure next to the old one: the new column, table or field.
- Migrate. Fill the new structure, and write to both while consumers move.
- Switch. Move every consumer to the new structure, with the notice their contracts promise.
- Contract. Remove the old structure once nobody reads it any more.
Database migration tools apply each step as a versioned script; the data model records the intended end state and the steps on the way.
Keeping the model and the databases in step
The documented model is only useful while it matches reality. Two habits keep it true:
- Harvest regularly. Read the real schema from the database, from DDL, or from API and message schemas, and compare it with the model. Each difference is either an undocumented change to review or a documentation gap to close.
- Review differences, do not overwrite. A harvested change should arrive as a branch for review, like any other change, rather than silently replacing the documented model.
Common mistakes
- Editing the main model directly. No review, no record, and no way back.
- Reviews without impact analysis. Approving a change without knowing what it reaches.
- Breaking changes in one step. Consumers find out when their jobs fail.
- Approvers who are also the authors. A review by oneself is not a control.
- Documentation updated after the fact, or never: the model drifts away from the databases.
- Standards checked by eye. Naming and type rules should be checked automatically on every change.
Frequently asked questions
What is data model version control?
Data model version control keeps every version of a data model and lets people change it on branches: copies where a change is prepared and reviewed before it is merged into the main version. It records who changed what and when, and makes it possible to compare versions and explain any past state.
What is the expand-and-contract pattern?
A way to make a breaking change without an outage. First the new structure is added next to the old one, then data is migrated and written to both, then consumers switch to the new structure, and finally the old one is removed. Each step is safe on its own.
Who should approve changes to a data model?
It depends on the change. Data architects approve design changes within a system; an architecture board approves new shared entities and relationships; the data owner approves changes to the meaning of critical data and breaking changes to shared interfaces. The person who proposes a change should not approve it.
How do you keep a data model in sync with the database?
Harvest the real schema regularly, from the database itself, from DDL or from API and message schemas, and compare it with the documented model. Review each difference as a change: either the model is updated, or the undocumented change in the database is questioned.