2 min read · Websites and web apps

The code version, the configuration and the database structure must match. Rolling back code is not the same as rolling back data. Data backups need a restore test and a defined amount of loss that is acceptable.
Implementation steps
- Set the checklist and the owner before release
- Test the database schema change against a suitable test copy
- Release with a check of the main functions and criteria for stopping
- Rehearse rolling back or fixing forward, and restoring, without accidentally overwriting new data
Example deliverable
Deliverable: a release runbook with decision points for stopping and restoring
Benefits
Helps make updates, checks and responses to mistakes happen in defined steps.
Limits and cautions
Having a pipeline does not make a release safe by itself, and restoring an old copy can lose new data.
Starting references
- GitHub — Understanding GitHub Actions
- PostgreSQL — Concurrency Control
References
- GitHub — Understanding GitHub Actions (accessed 2026-11-21)
- PostgreSQL — Concurrency Control (accessed 2026-11-21)




