BT San Technology

27 July 2026

Releasing a new web app version: CI/CD, database migrations and a recovery plan

2 min read · Websites and web apps

Illustration: a monitor showing the steps from code to cloud, each one checked, a hand pointing at it, beside a laptop showing a website and a small device box
AI-generated illustration

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

  1. Set the checklist and the owner before release
  2. Test the database schema change against a suitable test copy
  3. Release with a check of the main functions and criteria for stopping
  4. 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

  1. GitHub — Understanding GitHub Actions (accessed 2026-11-21)
  2. PostgreSQL — Concurrency Control (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer