SQLite: Allow deleting PRIMARY KEY from tables with auto increment

This commit is contained in:
Jakub Vrana 2018-02-07 14:47:29 +01:00
parent ca336427f5
commit 66e7ec56bb
3 changed files with 4 additions and 2 deletions

View file

@ -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);
}

View file

@ -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)

View file

@ -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