---
title: "Discussion on \"Zero-Downtime Database Migrations Without Breaking Production\" | Hashnode"
description: "Discussion on \"Zero-Downtime Database Migrations Without Breaking Production\". How to change a live PostgreSQL schema without freezing tables or breaking running code: the expand and contract pattern, safer versions of risky ALTERs, and tested code."
url: "https://hashnode.com/posts/zero-downtime-database-migrations-without-breaking-production-0c300/6ae9af44ad0a7686d241cd26"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Zero-Downtime Database Migrations Without Breaking Production](https://blog.zyvop.com/zero-downtime-database-migrations-without-breaking-production-0c300?utm_source=hashnode&utm_medium=feed)

How to change a live PostgreSQL schema without freezing tables or breaking running code: the expand and contract pattern, safer versions of risky ALTERs, and tested code.

Nov 3 · 22 min read · blog.zyvop.com  
Read the article

-   [#backend](https://hashnode.com/tag/backend)
-   [#databasemigrations](https://hashnode.com/tag/databasemigrations)
-   [#devops](https://hashnode.com/tag/devops)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#zerodowntime](https://hashnode.com/tag/zerodowntime)

## Written by

[ZyVOP](https://hashnode.com/@zyvop)

@zyvop · Delhi, India

  
[View profile](https://hashnode.com/@zyvop)

The Developer Publishing Hub

One platform to write, cross-post to Dev.to, Medium, WordPress, Hashnode, and Bluesky, and protect your SEO with canonical links. Zero paywalls and full content ownership.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
