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

Add primary KEY to migration_table #36

Open
mrcnpdlk opened this issue Mar 31, 2021 · 1 comment
Open

Add primary KEY to migration_table #36

mrcnpdlk opened this issue Mar 31, 2021 · 1 comment

Comments

@mrcnpdlk
Copy link
Contributor

For Percona XtraDB Cluster tables without primary keys are prohibited:
Uncaught PDOException: SQLSTATE[HY000]: General error: 1105 Percona-XtraDB-Cluster prohibits use of DML command on a table (my_base.migration_version) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER
What about adding the primary key on version column?
I can prepare the patch.

@byjg
Copy link
Owner

byjg commented Mar 31, 2021

It is cool a feature and I am happy to have this patch from you.

Quick question: Are you able to create the Patch for the other Databases too?

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

No branches or pull requests

2 participants