The default version history table for Flyway has been changed to {schemaname}.flyway_schema_history
from Flyway 7.0 onwards. However, for backwards compatibility, we need to set it to fallback to the previous table name {schemaname}.schema_version
.
Steps to update
- Go the the flyway configuration file.
- On MacOS, it can be found under the following directory – ‘usr/local/Cellar/flyway/7.2.0/libexec/conf/flyway.conf‘.
- Find the code block
flyway.table
and assign the nameschema_version
to it. - Save the file and run flyway.
