Skip to content


DBAL-691: [GH-435] [DBAL-400] Fix adding primary key during table alteration in MySQL #1913

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of deeky666:

Url: #435


This fixes a table alteration scenario in MySQL where a table currently has no primary key and is altered to add a primary key. This currently fails as there is no check whether the index to create is a primary key. Instead a UNIQUE INDEX is scheduled to be created and results in a syntax error.


Comment created by @doctrinebot:

A related Github Pull-Request [GH-435] was closed:


Comment created by @guilhermeblanco:

Merged: 8b28a9a


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@doctrinebot doctrinebot added this to the 2.4.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.