Get the most out of Flyway v7 - Sign up for our webinar on the Redgate Hub ▶ Watch now
Migrates the schema to the latest version. Flyway will create the schema history table automatically if it doesn’t exist.
Migrate is the centerpiece of the Flyway workflow. It will scan the filesystem or your classpath for available migrations. It will compare them to the migrations that have been applied to the database. If any difference is found, it will migrate the database to close the gap.
Migrate should preferably be executed on application startup to avoid any incompatibilities between the database and the expectations of the code.
Executing migrate is idempotent and can be done safely regardless of the current version of the schema.
Migrate will apply the migrations 6, 7, 8 and 9 in order.
Migrate does nothing.
© 2010-2020 Redgate. Made with in Cambridge.
Flyway is a registered trademark of Red Gate Software Ltd.
All other trademarks, trade names, logos or service marks mentioned on this site belong to their respective owners.
This site collects anonymous usage information through Google Analytics.