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

MongoDB: Prepare for alter index

This commit is contained in:
Jakub Vrana
2014-01-11 19:22:44 -08:00
parent 63a04ff753
commit 91bb94eda6
5 changed files with 7 additions and 7 deletions

View File

@@ -600,7 +600,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
foreach (array_reverse($alter) as $val) {
if (!queries($val[2] == "DROP"
? "DROP INDEX " . idf_escape($val[1])
: index_sql($table, $val[0], $val[1], $val[2])
: index_sql($table, $val[0], $val[1], "(" . implode(", ", $val[2]) . ")")
)) {
return false;
}