Database Schema Migrations

The cluster focuses on discussions about handling database schema migrations, including tools like Flyway, Liquibase, Alembic, and Dbmate, strategies for version control, and best practices for safe deployments.

📉 Falling 0.4x Databases
4,352
Comments
20
Years Active
5
Top Authors
#7100
Topic ID

Activity Over Time

2007
5
2008
5
2009
36
2010
72
2011
94
2012
103
2013
164
2014
159
2015
189
2016
180
2017
228
2018
232
2019
514
2020
396
2021
410
2022
372
2023
423
2024
463
2025
296
2026
11

Keywords

TFA compilerworks.com DB DBA SQL XML liquibase.org rothlis.net CI PG migrations migration schema database db sql schemas load balancer balancer application

Sample Comments

ramraj07 Apr 9, 2023 View on HN

Point likely stands - any schema migration is not an easier problem on either side - you just move the migration logic to your code instead of the database.

aregsarkissian Mar 18, 2018 View on HN

There are various database agnostic schema migration tools that can help. There are rails, django and laravel migrations or alembic if you use python/sqlalchemy. There also pure sql based migration systems such as flyway. There is a great pluralsight course on proper way to do migrations using flyway. Most of it applies to migrations with any migration tool. You might be able to check it out with the free trial. But basically you want to do all your add columns and add tables before deployi

MuffinFlavored Dec 9, 2019 View on HN

I can't tell if it is for just the schema, or the schema + data inside the tables. If it is just the schema, I feel like there are better software ways to define + manage database migrations (aka make them part of the repo with up/down methods to roll forward / roll back)

bauerd Sep 7, 2017 View on HN

How do you handle database schema migrations?

nopcode Aug 26, 2025 View on HN

With a tool like this, what's the recommended approach to deal with schema changes (migrations) for my apps/deployments using this db?

devit Oct 10, 2015 View on HN

Why not just use simple version controlled database migrations, and testing them in a test environment?

cloogshicer Feb 18, 2025 View on HN

What's difficult about schema migration? Not being snarky, genuinely curious :)

h4ck3r3l Aug 8, 2017 View on HN

How is this different from existing tools such as Flyway or Liquibase?

bjornsing Dec 5, 2020 View on HN

Interesting. How do you deal with schema migrations?

austinhyde Aug 10, 2015 View on HN

Sure, I'll throw my hat in the ring here with a shameless self-plug.I help maintain a database versioning/migration tool that my team has been successfully using for years now: https://github.com/nkiraly/DBStewardThe idea is that instead of managing a schema + several migrations, you just store the current schema in XML, then generate a single migration script between any two