1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

SQLite: Allow editing primary key

This commit is contained in:
Jakub Vrana
2013-08-08 15:32:36 -07:00
parent 4e22af6de0
commit 6664b0fb7e
3 changed files with 81 additions and 45 deletions

View File

@@ -7,10 +7,10 @@ if (preg_match('~MyISAM|M?aria' . ($connection->server_info >= 5.6 ? '|InnoDB' :
}
$indexes = indexes($TABLE);
$primary = array();
if ($jush == "sqlite") { // doesn't support primary key
$primary = $indexes[""];
if ($jush == "mongo") { // doesn't support primary key
$primary = $indexes["_id_"];
unset($index_types[0]);
unset($indexes[""]);
unset($indexes["_id_"]);
}
$row = $_POST;