Database Migration

Flyway

  • Open source database migration tool

Why database migrations?

How Flyway works

Concepts

Migrations

  • With Flyway all changes to the database are called migrations.
  • Migrations can be either versioned or repeatable.
  • Versioned migrations come in 2 forms: regular and undo.

Versioned migrations

  • have version (unique), description and checksum

Repeatable migrations

  • have description and checksum (no version)

Basic Commands

Flyway Migration Tools

Resources