1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-22 14:12:51 +02:00

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