Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 34999cd

Browse files
committed
Improve doc
1 parent 8d75373 commit 34999cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-driver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3285,6 +3285,10 @@ private function get_sqlite_create_table_statement(
32853285
* PRIMARY KEY without AUTOINCREMENT (to avoid the ROWID alias).
32863286
* 2. Use "INTEGER PRIMARY KEY" otherwise.
32873287
*
3288+
* In SQLite, "AUTOINCREMENT" is only allowed on "INTEGER PRIMARY KEY",
3289+
* and setting it changes the automatic ROWID assignment algorithm to
3290+
* prevent the reuse of ROWIDs. Using "INT PRIMARY KEY" is not allowed.
3291+
*
32883292
* See:
32893293
* - https://www.sqlite.org/autoinc.html
32903294
* - https://www.sqlite.org/lang_createtable.html

0 commit comments

Comments
 (0)