Software Development
Database migrations: how to change a schema safely while a service is running
A database migration is a recorded, repeatable change that moves a schema or its data from one state to another. When applications are deployed continuously, or old and new versions run at the same time, splitting a destructive change into stages can reduce risk. It does not guarantee “zero downtime”: table size, locks, data conversion, deployment order, and recovery plans all matter.