---
title: "Discussion on \"Your Database Migrations Can Take Production Down: 8 Schema Migration Mistakes and How to Fix Them\" | Hashnode"
description: "Discussion on \"Your Database Migrations Can Take Production Down: 8 Schema Migration Mistakes and How to Fix Them\". 8 PostgreSQL schema migration mistakes that cause downtime: lock timeouts, blocking indexes, NOT NULL, backfills, and how to fix each safely."
url: "https://hashnode.com/posts/your-database-migrations-can-take-production-down-8-schema-migration-mistakes-and-how-to-fix-them/6b1396f55f2d33e88f2ce41c"
---

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

Discussion

# [Your Database Migrations Can Take Production Down: 8 Schema Migration Mistakes and How to Fix Them](https://prisminfoways.hashnode.dev/your-database-migrations-can-take-production-down-8-schema-migration-mistakes-and-how-to-fix-them?utm_source=hashnode&utm_medium=feed)

8 PostgreSQL schema migration mistakes that cause downtime: lock timeouts, blocking indexes, NOT NULL, backfills, and how to fix each safely.

1d ago · 7 min read · prisminfoways.hashnode.dev  
Read the article

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

## Written by

[Prism Infoways](https://hashnode.com/@prisminfoways)

@prisminfoways · Gurugram

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

IT services company from Gurugram, India — web, cloud & AI solutions for growing businesses.

"IT solutions and web development company based in India. Visit prisminfoways.com"

## Responses 1

Markdown supported · ⌘↵ to post

[Vinay](https://hashnode.com/@404humandev)

[10h ago](https://hashnode.com/posts/your-database-migrations-can-take-production-down-8-schema-migration-mistakes-and-how-to-fix-them/6b1396f55f2d33e88f2ce41c/comment/6b14a6448f3f83d33448fde3)

the tiny database one hits home. we had migrations that passed fine in stock postgres CI and then neon refused them since we weren't superuser, took a while to figure out
