---
title: "Schema migrations"
description: "Evolving schemas and migrating data safely"
url: "https://swe.quest/tags/schema-migrations"
---

# Schema migrations

Topic in Data & databases: Evolving schemas and migrating data safely

By difficulty: [Easy](https://swe.quest/tags/schema-migrations.md?difficulty=easy) · [Medium](https://swe.quest/tags/schema-migrations.md?difficulty=medium) · [Hard](https://swe.quest/tags/schema-migrations.md?difficulty=hard)

Posts 1–24 of 111, page 1 of 5, newest first.

## 2026-11-23

- [Why you shouldn't do application-level sharding](https://swe.quest/articles/why-you-shouldn-t-do-application-level-sharding-4fe6249c12df9221.md): PlanetScale · 2026-11-23 · Medium · 21 min read · Distributed databases, Scaling, Consistency models, Schema migrations, PostgreSQL
  Application-level sharding of an OLTP database looks simple on day one (a \`shard\_for(user\_id % N)\` function) but accumulates serious engineering burdens as a system grows.

## 2026-11-16

- [Naming is hard, semantics are hard(er): Inside Sentry Conventions](https://swe.quest/articles/naming-is-hard-semantics-are-hard-er-inside-sentry-conventions-2c2ecdaa4018c90f.md): Sentry · 2026-11-16 · Medium · 7 min read · Observability, Schema migrations, API design
  Sentry Conventions is a superset of OpenTelemetry Semantic Conventions that defines attribute names, types, scrubbing policies, deprecation chains, span ops, span naming rules and metric specs across Sentry's ~100 SDKs, its Relay ingestion service, Snuba querying and the product UI.

## 2026-11-11

- [How we migrate TBs from Heroku without logical replication](https://swe.quest/articles/how-we-migrate-tbs-from-heroku-without-logical-replication-e0568c616a878849.md): PlanetScale · 2026-11-11 · Medium · 12 min read · PostgreSQL, Schema migrations, Replication, Networking
  PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.

## 2026-11-04

- [Inside a Kylon room, where people and agents build apps on Neon](https://swe.quest/articles/inside-a-kylon-room-where-people-and-agents-build-apps-on-neon-7c02cd9384e86f37.md): Neon · 2026-11-04 · Easy · 5 min read · PostgreSQL, AI agents, Multi-tenancy, Serverless, Schema migrations
  Kylon, a shared workspace where teams and AI agents build internal apps like CRMs and invoice trackers, maps its product directly onto Neon resources: one Neon project per workspace, one database per app, and one branch per draft.

## 2026-10-30

- [Databases as Variables: What Unlimited Databases Actually Changes](https://swe.quest/articles/databases-as-variables-what-unlimited-databases-actually-changes-a5697bc287b26b2b.md): Turso · 2026-10-30 · Medium · 9 min read · Multi-tenancy, SQLite, System design, Schema migrations, Databases
  Turso Cloud's paid plans no longer meter active databases, so a database costs only its storage while idle.

## 2026-10-21

- [I don't trust ON DELETE CASCADE](https://swe.quest/articles/i-don-t-trust-on-delete-cascade-44280f7ae72c78f6.md): PlanetScale · 2026-10-21 · Medium · 5 min read · PostgreSQL, Schema migrations, Replication, Databases
  Postgres ON DELETE CASCADE turns a single-row delete into an unbounded transaction that can cause outages at scale.

## 2026-10-15

- [Faster config, migrations and functions on branches](https://swe.quest/articles/faster-config-migrations-and-functions-on-branches-f64718202c9feaa6.md): Supabase · 2026-10-15 · Medium · 7 min read · PostgreSQL, Schema migrations, Deployment, CI/CD, Serverless
  Supabase preview branches are separate projects that become ready in about 20 seconds (median) by running three mostly parallel workflows: copying configuration, applying migrations, and deploying Edge Functions.

## 2026-10-13

- [Declarative Schemas 2.0 with pg-delta](https://swe.quest/articles/declarative-schemas-2-0-with-pg-delta-0896bf8f6c8dbe4f.md): Supabase · 2026-10-13 · Medium · 11 min read · Schema migrations, PostgreSQL, Developer tools, Open source
  Supabase replaced migra with pg-delta, its own open-source Postgres diff engine, as the generator behind declarative schema migrations in the Supabase CLI. pg-delta loads schema files and migration history into two shadow databases, diffs them by reading the system catalog, and orders output with a catalog-derived dependency graph.

## 2026-10-08

- [How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight](https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7.md): ClickHouse · 2026-10-08 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Schema migrations, Storage systems
  Clera moved a 500 GB, 500+ table production Postgres database from the EU to the US overnight onto ClickHouse Managed Postgres, with production traffic still running, using two parallel ClickPipes pipelines.

## 2026-09-30

- [Incident Report: September 30, 2026: Domain Routing Disruption](https://swe.quest/articles/incident-report-september-30-2026-domain-routing-disruption-818b99b24229ffdb.md): Railway · 2026-09-30 · Medium · 5 min read · Incidents & postmortems, Schema migrations, Deployment, Resilience, Load balancing
  A rollout of Railway's distributed routing control plane deployed a new routing service binary before its required database schema migration finished, because the two ran in parallel pipelines after the control plane was split out of the monolith.

## 2026-09-02

- [5 Billion Records, 10 Terabytes, Four Weeks: A Real Data Migration Playbook](https://swe.quest/articles/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook-ba6d0d87ec973dae.md): Wix Engineering · 2026-09-02 · Medium · 9 min read · Schema migrations, Data pipelines, Queues & messaging, MySQL, Testing
  Wix's large live-system migrations dropped from months or years to weeks mainly by tackling recurring problems before the migration starts, not through new tooling.

## 2026-08-31

- [Kubernetes v1.37: Storage Version Migration Enabled by Default](https://swe.quest/articles/kubernetes-v1-37-storage-version-migration-enabled-by-default-20e1fb9b7c9b8733.md): Kubernetes Blog · 2026-08-31 · Medium · 3 min read · Kubernetes, Schema migrations, API design
  Storage version migration (SVM) is GA and enabled by default in Kubernetes v1.37, adding the built-in StorageVersionMigration API (storagemigration.k8s.io/v1) and a control-plane controller that rewrites stored objects to the current storage version.

## 2026-08-26

- [Introducing Neon Labs](https://swe.quest/articles/introducing-neon-labs-91c029a8271e5821.md): Neon · 2026-08-26 · Medium · 6 min read · PostgreSQL, Schema migrations, Replication, Developer tools
  Neon Labs launches with two experimental tools for major Postgres version upgrades on Neon, where pg\_upgrade isn't supported and an upgrade means migrating into a new project.

## 2026-08-25

- [Just landed in the Neon CLI](https://swe.quest/articles/just-landed-in-the-neon-cli-10a12bf3c6b45d1f.md): Neon · 2026-08-25 · Medium · 6 min read · Developer tools, PostgreSQL, AI agents, Schema migrations
  The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on \`neon link\`, \`neon checkout\` and \`neon env pull\`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars.

## 2026-08-12

- [Migrating from PostgreSQL/MySQL to SQLite: When and How to Make the Switch](https://swe.quest/articles/migrating-from-postgresql-mysql-to-sqlite-when-and-how-to-make-the-switch-9d0f845128cffdd6.md): Turso · 2026-08-12 · Medium · 9 min read · SQLite, Schema migrations, PostgreSQL, MySQL, Databases
  SQLite, especially via Turso Cloud, can replace PostgreSQL or MySQL for read-heavy, moderate-write workloads, trading complex-JOIN optimization, stored procedures, rich types and native replication for simpler operations, lower cost and local reads.

## 2026-08-05

- [Introducing the CockroachDB Kubernetes Operator](https://swe.quest/articles/introducing-the-cockroachdb-kubernetes-operator-e95f6b6906d1361c.md): Cockroach Labs · 2026-08-05 · Medium · 5 min read · Kubernetes, Distributed databases, Deployment, Schema migrations
  Cockroach Labs has made its CockroachDB Kubernetes Operator generally available.

## 2026-06-23

- [How we migrated a live routing system using AI-assisted refactoring](https://swe.quest/articles/how-we-migrated-a-live-routing-system-using-ai-assisted-refactoring-db938ac15eae4cef.md): Datadog Engineering · 2026-06-23 · Medium · 13 min read · Refactoring & migrations, AI for coding, PostgreSQL, Schema migrations, Testing
  Datadog migrated Stream Router, the control plane that tells metrics producers and queriers which Kafka cluster, topic and partitions to use, from a FoundationDB key-value model to a relational schema.

## 2026-06-22

- [How Spyne simplified their CDC pipeline with ClickPipes and ClickHouse Cloud](https://swe.quest/articles/how-spyne-simplified-their-cdc-pipeline-with-clickpipes-and-clickhouse-cloud-44d67da08e6e4dbc.md): ClickHouse · 2026-06-22 · Medium · 6 min read · Event-driven architecture, Data pipelines, Analytics & OLAP, Schema migrations
  Spyne replaced a self-managed Debezium → Kafka → ClickHouse Kafka-engine/materialized-view CDC pipeline with ClickPipes on ClickHouse Cloud.

## 2026-06-17

- [92x faster queries: How Open Electricity uses ClickHouse to track Australia’s energy transition in real time](https://swe.quest/articles/92x-faster-queries-how-open-electricity-uses-clickhouse-to-track-australia-s-20ac8734e6948ce3.md): ClickHouse · 2026-06-17 · Medium · 9 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Schema migrations, Deployment
  Open Electricity moved the analytical workload behind its public Australian energy API from Postgres/TimescaleDB to ClickHouse, keeping relational data in Postgres.

## 2026-06-08

- [Managing Elasticsearch Reindex at Scale: Performance, Reliability, and Observability](https://swe.quest/articles/managing-elasticsearch-reindex-at-scale-performance-reliability-and-12c26b4dcf9e376c.md): Palantir · 2026-06-08 · Medium · 14 min read · Search, Schema migrations, Resilience, Observability, System design
  Palantir's Gotham document store rebuilds Elasticsearch indices from its transactional database (the source of truth) rather than using Elasticsearch's \_reindex API, so search keeps serving live traffic throughout.

## 2026-03-19

- [How Slack Rebuilt Notifications 📣](https://swe.quest/articles/how-slack-rebuilt-notifications-6d74dae5d4cbcb88.md): Slack Engineering · 2026-03-19 · Medium · 7 min read · Product engineering, Schema migrations, Mobile, Communications
  Slack replaced four conflicting desktop/mobile notification preference systems with one unified model that separates what to be notified about (All new posts, Mentions, Mute) from how notifications arrive (independent desktop and mobile push toggles).

## 2026-03-17

- [How Socialpruf built a faster, more reliable data stack by replacing Neon with Postgres managed by ClickHouse](https://swe.quest/articles/how-socialpruf-built-a-faster-more-reliable-data-stack-by-replacing-neon-with-ba1cc6a2c844f08b.md): ClickHouse · 2026-03-17 · Easy · 7 min read · PostgreSQL, Analytics & OLAP, Schema migrations, Databases, Cost optimization
  Socialpruf, a social analytics platform ingesting hundreds of posts per second, moved customer-facing dashboard queries from Postgres to ClickHouse via CDC, cutting multi-second load times to millisecond aggregations.

## 2026-02-19

- [Making large Postgres migrations practical: 1TB in 2 hours with PeerDB](https://swe.quest/articles/making-large-postgres-migrations-practical-1tb-in-2-hours-with-peerdb-cc7872fe91229eda.md): ClickHouse · 2026-02-19 · Medium · 13 min read · PostgreSQL, Replication, Schema migrations, Performance engineering, Data pipelines
  PeerDB migrated a 1TB, 3.6-billion-row Postgres table in about 1 hour 50 minutes with 8 threads, compared with 8 hours 40 minutes for native logical replication and 17 hours for pg\_dump/pg\_restore.

## 2026-01-29

- [Behind Modem.dev’s Product Velocity](https://swe.quest/articles/behind-modem-dev-s-product-velocity-485adbdf853a0161.md): Neon · 2026-01-29 · Medium · 4 min read · PostgreSQL, Schema migrations, CI/CD, Developer productivity
  Modem, a startup building an AI agent that centralizes user feedback from Slack, Discord and GitHub, uses Neon Postgres branching as its development workflow.

[Next page](https://swe.quest/tags/schema-migrations.md?page=2)

Same list as RSS: [https://swe.quest/feed.xml?tag=schema-migrations](https://swe.quest/feed.xml?tag=schema-migrations). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
