Database migrations (perubahan schema) minangka salah sawijining bagian sing paling angel ing CI/CD — beda karo kode aplikasi sing stateless, basis data nampung state sing ora bisa diganti utawa dibatalke. Nangani migrations kanthi ati-ati (otomasi, backward compatibility, pola sing aman) kaharusan kanggo deployment sing bisa dipercaya.
Napa database migrations iku angel
App code is stateless (replace it, roll back freely). DATABASES hold STATE:
→ can't just "roll back" a migration that dropped a column or transformed data
(the data may be gone) → rollbacks are risky/impossible for destructive changes
→ during deployment, OLD and NEW app code may run SIMULTANEOUSLY (rolling deploy) —
both must work with the database schema at that moment
→ Schema changes need careful coordination with code deployment.
