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

Allow changing SQLite indexes with same name

This commit is contained in:
Jakub Vrana
2013-06-24 10:04:07 -07:00
parent e51640eb98
commit 7dd454f0b4

View File

@@ -510,7 +510,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
}
function alter_indexes($table, $alter) {
foreach ($alter as $val) {
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])