Skip to content

quickly help you decide between three popular frameworks

Notifications You must be signed in to change notification settings

nathansutton/database-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Which tool should you use for database migrations?

YourActionName Actions Status

Choose a paradigm based on your needs.

Every data team I have worked on has had a relational database at the core of our operations. When you have a relational database, you will inevitably have to change it! This post will help you decide between three useful frameworks for versioned database migrations - sqitch, flyway, and liquibase. This repository walks through each implementation of the same database in a dockerized PostgreSQL database.

Why these three?

I focused this guide on sqitch, flyway, and liquibase because they share two important characteristics. They all work with virtually any relational database - this cuts out Microsoft's excellent DACPACs. They all allow users to write migrations in plain SQL - this cuts out most ORM implementations like Alembic and Orator. 

Usage

Turn on the database and run all migrations with a single command

docker-compose up 

Run the flyway migrations

./src/bin/run-flyway-migrations.sh

Run the sqitch migrations

./src/bin/run-sqitch-migrations.sh

Run the liquibase migrations

./src/bin/run-liquibase-migrations.sh

About

quickly help you decide between three popular frameworks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published