mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Ignore SQLite autoindexes
This commit is contained in:
@@ -301,10 +301,12 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
|
|||||||
$return[""] = array("type" => "PRIMARY", "columns" => $primary, "lengths" => array());
|
$return[""] = array("type" => "PRIMARY", "columns" => $primary, "lengths" => array());
|
||||||
}
|
}
|
||||||
foreach (get_rows("PRAGMA index_list(" . table($table) . ")") as $row) {
|
foreach (get_rows("PRAGMA index_list(" . table($table) . ")") as $row) {
|
||||||
$return[$row["name"]]["type"] = ($row["unique"] ? "UNIQUE" : "INDEX");
|
if (!ereg("^sqlite_", $row["name"])) {
|
||||||
$return[$row["name"]]["lengths"] = array();
|
$return[$row["name"]]["type"] = ($row["unique"] ? "UNIQUE" : "INDEX");
|
||||||
foreach (get_rows("PRAGMA index_info(" . idf_escape($row["name"]) . ")") as $row1) {
|
$return[$row["name"]]["lengths"] = array();
|
||||||
$return[$row["name"]]["columns"][] = $row1["name"];
|
foreach (get_rows("PRAGMA index_info(" . idf_escape($row["name"]) . ")") as $row1) {
|
||||||
|
$return[$row["name"]]["columns"][] = $row1["name"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
|
Reference in New Issue
Block a user