Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use updated flyway_schema_history table name #20

Closed
Mufasa opened this issue Jun 22, 2018 · 0 comments
Closed

Use updated flyway_schema_history table name #20

Mufasa opened this issue Jun 22, 2018 · 0 comments

Comments

@Mufasa
Copy link

Mufasa commented Jun 22, 2018

flyway changed the name of the schema history table from schema_version to flyway_schema_history from v5.0.0 onwards. Your FlywayFactory class still seems to use the old name (line 28 - private String metaDataTableName = "schema_version";).

This causes the following warning to be logged when validating the schema:

WARN JdbcTableSchemaHistory:53 - Could not find schema history table my_db.flyway_schema_history, but found my_db.schema_version instead. You are seeing this message because Flyway changed its default for flyway.table in version 5.0.0 to flyway_schema_history and you are still relying on the old default (schema_version). Set flyway.table=schema_version in your configuration to fix this. This fallback mechanism will be removed in Flyway 6.0.0.

I know that I can override this default by adding this to my dropwizard YML file:

flyway:
metaDataTableName: flyway_schema_history

But I was wondering if this default can be changed to match the current flyway default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants