Skip to content

CICD-310 · Flyway migration ​

Encyclopedia · Database delivery and migration · All snippets

Previous · CICD-309 · Next · CICD-311

1. Where it fits ​

  • Placement CI deploy step.
  • Prerequisites disposable database, migration tools and a scoped database role.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
flyway validate
flyway migrate
flyway info

3. How it works ​

Flyway compares migration history and checksums, then applies pending files to the selected datasource.

4. Verify the result ​

Supply Flyway credentials through protected configuration. Edited migration checksums should fail validation.

Validation syntax-validated (Bash parse). Status definitions.