-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix sqlite autoincrement detection #515
Fix sqlite autoincrement detection #515
Conversation
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DBAL-792 We use Jira to track the state of pull requests and the versions they got |
@@ -493,6 +493,18 @@ public function testAutoincrementDetection() | |||
$inferredTable = $this->_sm->listTableDetails('test_autoincrement'); | |||
$this->assertTrue($inferredTable->hasColumn('id')); | |||
$this->assertTrue($inferredTable->getColumn('id')->getAutoincrement()); | |||
|
|||
$table = new \Doctrine\DBAL\Schema\Table('test_not_autoincrement'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a new test method instead (with @group DBAL-792
)
Fix sqlite autoincrement detection
@beberlei Can this be backported to 2.4? THX |
@bantu Only @beberlei and @guilhermeblanco merge PRs. They will have a look at the PRs to be merged soon :) |
in this case to be backported of course. |
@beberlei Can we get this backported to 2.3 please? |
When there are 2 PK-columns the code would still mark the first column as autoincrement.