Introduction

A database migration tool:

// like Git for your db schema

Without Flyway ❌:

How Flyway work:

  1. SpringBoot app start
  2. SpringBoot auto-detects Flyway if:
  3. Flyway starts migrates DB before hibernate.
  4. Flyway uses Spring’s DataSource to connect target DB.