Redgate Flyway

Tutorial - Apply database changes from the schema model to your database


If you pull down schema model changes from version control which have not been applied to your development database yet, you can apply them on the Schema model tab.  Click on the Apply to database option in the top left, review and select the relevant changes, and click the Apply to database button.

Clicking Apply to database will prompt you to make sure you really want to apply those changes to your development database.  If you have unsaved work on your development db, then your changes could be overwritten.  Click Continue to make apply the changes to the database.

You can run the prepare and deploy commands to update the development database

  1. flyway prepare -source=schemaModel -target=development
  2. flyway deploy -environment=development


Next steps

  • If you have just pulled and are using migrations, validate that your migrations are deployable

Didn't find what you were looking for?