_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Database Migration Checklist

16. 07. 2022 1 min read intermediate

Database migrations are risky. This checklist minimizes the risk.

Planning

  • ☐ Migration tested on copy of production data
  • ☐ Execution time estimate
  • ☐ Rollback script prepared
  • ☐ Maintenance window planned (if needed)
  • ☐ Stakeholders informed

Zero-Downtime Techniques

  • ☐ Expand-contract pattern
  • ☐ New column with default value (not NOT NULL without default)
  • ☐ Index CONCURRENTLY (PostgreSQL)
  • ☐ Backfill in batches, not all at once
  • ☐ Dual-write pattern for large refactors

Safety

  • ☐ Backup before migration
  • ☐ Point-in-time recovery functional
  • ☐ Migration idempotent
  • ☐ Rollback tested

Post-Migration

  • ☐ Verify data integrity
  • ☐ Check query performance
  • ☐ Old columns/tables deleted (with delay)
  • ☐ Monitoring OK

Rule

Never migrate on Friday afternoon. And always have a rollback plan.

databasemigrationdevops
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.