Flyway Database Migration Tutorial - Java API

preview_player
Показать описание
Let me explain and show you how to code Flyway for Database Migrations in Java.

First, why do we need automated database migrations?

This is pretty simple, database migrations will ensure developers know what the current schema’s state is in each environment. They just need to look at flyways history table and see the version, or look at the application version and what schema files are on the classpath.

Migrations also provide other great benefits like

Ensuring your persistence tests can be run against a database with the same schema. This can be done by spinning up a docker database instance, running flyway then running your junit tests against the database.

Recreating a database from scratch. This can save a lot of time when spinning up a new environment.

Don’t forget to subscribe for more tech videos like this,

Cheers!
Philip

Links:

Flyway

Why database migrations?

How Flyway Works

Flyway Github
Рекомендации по теме
Комментарии
Автор

Thank's, bro! Was very clear and well explained!

trandreluis
Автор

Does flyway support database refresh from different environment like dev and QA environment. Please clarify

varadagourabathuni
Автор

Hey there I just found your channel and I would like to ask you if you are planing on doing some videos explaining or more showing core programming principles. Design patters and well anything that is core idea of something software oriented or telling me that something like that even exists is enough. I don't really care if they are explained properly or not (though it would be much appreciated) because I can easily Google it.

TL;DR Would you make content that is showing me before never seen things in programming?

PedoDorf
welcome to shbcf.ru