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

Fix sqlite autoincrement detection #515

Merged
merged 2 commits into from
Feb 8, 2014
Merged

Fix sqlite autoincrement detection #515

merged 2 commits into from
Feb 8, 2014

Conversation

bartv2
Copy link
Contributor

@bartv2 bartv2 commented Jan 17, 2014

When there are 2 PK-columns the code would still mark the first column as autoincrement.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DBAL-792

We use Jira to track the state of pull requests and the versions they got
included in.

@@ -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');
Copy link
Member

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)

beberlei added a commit that referenced this pull request Feb 8, 2014
@beberlei beberlei merged commit 3faa3a6 into doctrine:master Feb 8, 2014
@bartv2 bartv2 deleted the fix-pk-autoincrement-detection branch February 10, 2014 21:43
bartv2 added a commit to owncloud-archive/3rdparty that referenced this pull request Feb 18, 2014
@DeepDiver1975
Copy link
Contributor

@beberlei Can this be backported to 2.4? THX

@bantu
Copy link
Contributor

bantu commented Mar 24, 2014

@beberlei @deeky666 Bump.

@deeky666
Copy link
Member

@bantu Only @beberlei and @guilhermeblanco merge PRs. They will have a look at the PRs to be merged soon :)

@deeky666
Copy link
Member

in this case to be backported of course.

@bantu
Copy link
Contributor

bantu commented Mar 26, 2014

@beberlei Can we get this backported to 2.3 please?

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.

7 participants