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

Ensuring correct ALTER TABLE statement for creation of an AUTO INCREMENT column as new PRIMARY KEY #3310

Closed
wants to merge 11 commits into from

Conversation

arnegroskurth
Copy link
Contributor

Q A
Type bug
BC Break no
Fixed issues #2807

Summary

Ensures that the primary key is created within the same "alter table" statement that an auto-increment column is added to the table as part of the new primary key.

Before the fix for this problem this resulted in a database error:

SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key

@arnegroskurth arnegroskurth changed the base branch from master to 2.8 October 4, 2018 10:50
@Ocramius
Copy link
Member

Ocramius commented Oct 4, 2018

@arnegroskurth please target master

@arnegroskurth arnegroskurth changed the base branch from 2.8 to master October 4, 2018 10:51
@arnegroskurth arnegroskurth deleted the alter-pk-with-ai branch October 4, 2018 10:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants