Learn how to use Flyway for Automated Database Migrations
A learning path for managing and automating database deployments, from version control, using Flyway.
You’ll need to click on the image once to open it, and then the links in each article box will work.
Key:
- Yellow box = Flyway Community Edition
- Blue box = Requires Flyway Teams Edition
- Red box = Requires Flyway Enterprise
For further information about Flyway:
- Flyway documentation
- Flyway video training courses on Redgate University
Was this article helpful?
Tools in this post
You may also like
-
Article
How Can Redgate Tools Help with a Cloud Migration?
The cloud migration tools and processes that will help you move a database to the cloud, from planning, implementation and validation through to extending existing development and deployment processes to the new cloud platform.
-
Article
How to Automate Cross-Platform Database Development
In order to focus on their primary task of developing databases, the development team need to automate as many as possible of the routine tasks that are essential for database delivery, such as testing, scripting, version control, documentation, code review, reporting and so on. This article gives some advice on how to do it, faced with the added challenge of needing to use several different relational databases.
-
Article
Passing Parameters and Settings to Flyway Scripts
This article explains the various ways of using placeholders to pass information and settings to any Flyway script, to gain bit of extra flexibility in a migration run., providing examples of conditional execution, running SQL expressions using environment variables and even one of using placeholders in a callback to send a warning notification to your phone, after a migration completes.
-
Article
Using Flyway and Data Containers for Database Testing: Rapid Setup and Teardown
This article demonstrates how to use the rgclone CLI in Redgate Test Data Manager to automatically save each new version of a database created by Flyway as a data container revision, tracking which Flyway version maps to which container revision. We can then, from a single data container, load any version of the database during test setup, as well as quickly 'reset' a container during test teardown.
-
Article
Simple Safeguards for PowerShell Scripting with Flyway
This article demonstrates simple techniques to security-check any processes that use Bash or PowerShell scripts to automate database tasks, when using Flyway. These checks help ensure a script is trusted, hasn't been tampered with since creation, and doesn't contain commands commonly used with malicious intent. They add a valuable layer of protection, without sacrificing the power and flexibility that makes Flyway so effective.
-
Article
Code Visibility: Browsing through Flyway Migration Files
If you can convert a SQL file to HTML, then you can inspect your Flyway migration files in a browser. This is especially useful if your SQL is color-coded with the same conventions as it was in your IDE. It is even better still if your browser can allow you to scan through many files, moving from file to file with a single click. This article demonstrates how to do this with a few PowerShell scripts.