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
merged 1 commit into from May 5, 2016

Conversation

@erindru
Copy link
Contributor

@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 #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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.