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

Allow Flyway to be used on MariaDB/Galera clusters #1294

merged 1 commit into from May 5, 2016


Copy link

@erindru erindru commented Apr 26, 2016

Currently, running MariaDB in a Galera cluster requires innodb_force_primary_key=1 to be set. This breaks Flyway because it manipulates the primary key separately from defining the schema_version table.

The way to fix this for all of MySQL, MariaDB and MariaDB/Galera is to set the primary key in the CREATE TABLE statement, and if its being dropped and re-created on a different field then it can be done as part of the ALTER statement.

Fixes #1293

…o that Flyway can work on servers with 'innodb_force_primary_key' enabled. Fixes flyway#1293
@axelfontaine axelfontaine merged commit b7db1f4 into flyway:master May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Flyway cannot create schema table on Galera cluster (MariaDB)
2 participants