issuetracker / Runbooks / Database Runbook

Database Runbook

Schema changes should follow:

1 min readApplies to v0.6.0
On this page ▾
  1. Migration lifecycle
  2. Production rule
  3. Backups

Migration lifecycle

text
model/schema change
      │
      ▼
migration generation
      │
      ▼
migration review
      │
      ▼
test database
      │
      ▼
deployment

Production rule

Never run destructive schema commands against production without a reviewed migration/backup strategy.

Backups

Production backups should be:

  • automated
  • encrypted
  • monitored
  • periodically restore-tested

A backup that has never been restored is not a verified recovery mechanism.