diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index 5ffd531a..45721726 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -507,6 +507,9 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { if ($table != "") { if (!$fields) { foreach (fields($table) as $key => $field) { + if ($indexes) { + $field["auto_increment"] = 0; + } $fields[] = process_field($field, $field); $originals[$key] = idf_escape($key); } diff --git a/changes.txt b/changes.txt index 626b3dd1..fe6e1352 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ Adminer 4.6.1-dev: MySQL: Support non-utf8 charset in search in column MySQL: Support geometry in MySQL 8 (bug #574) +SQLite: Allow deleting PRIMARY KEY from tables with auto increment PostgreSQL: Support binary files in bytea fields PostgreSQL: Cast to string when searching using LIKE (bug #325) PostgreSQL: Don't treat interval type as number (bug #474) diff --git a/todo.txt b/todo.txt index 6cab06ca..bd43359e 100644 --- a/todo.txt +++ b/todo.txt @@ -27,8 +27,6 @@ SQLite: Copy tables Delimiter in export and SQL command Backward keys in Editor -Delete PRIMARY KEY from a table with auto increment -"PRIMARY (`id`)" and "UNIQUE (id)" indexes shown for tables with auto increment PostgreSQL: Display number of schemas in databases overview