Skip to content

allow creating PRIMARY KEY AUTOINCREMENT fields for sqlite#2921

Closed
icewind1991 wants to merge 1 commit intodoctrine:masterfrom
icewind1991:sqlite-pk-autoincrement
Closed

allow creating PRIMARY KEY AUTOINCREMENT fields for sqlite#2921
icewind1991 wants to merge 1 commit intodoctrine:masterfrom
icewind1991:sqlite-pk-autoincrement

Conversation

@icewind1991
Copy link
Copy Markdown
Contributor

If a PRIMARY KEY field is defined in sqlite without autoincrement then
keys might be reused when rows are deleted, explicitly settings autoincrement
will prevent this.

Autoincrement is not enabled by default due to additional overhead introduced
with autoincrement bookkeeping and should only be enabled when the additional
uniqueness is required.

See also #1861

If a PRIMARY KEY field is defined in sqlite without autoincrement then
keys might be reused when rows are deleted, explicitly settings autoincrement
will prevent this.

Autoincrement is not enabled by default due to additional overhead introduced
with autoincrement bookkeeping and should only be enabled when the additional
uniqueness is required.
@Majkl578
Copy link
Copy Markdown
Contributor

Majkl578 commented Dec 6, 2017

Tests are not passing here...
Also linking #2426.

@TimoBakx
Copy link
Copy Markdown
Contributor

TimoBakx commented May 11, 2018

I updated the unit tests in PR #3141.

@TimoBakx
Copy link
Copy Markdown
Contributor

TimoBakx commented Jun 1, 2018

@Majkl578 The commits in this PR were merged through #3141. This PR may be closed.

@Majkl578
Copy link
Copy Markdown
Contributor

Majkl578 commented Jun 1, 2018

Cool. 👍

@Majkl578 Majkl578 closed this Jun 1, 2018
@Majkl578 Majkl578 self-assigned this Jun 1, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants