Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /adminer/drivers/sqlite.inc.php [e51640] .. [7dd454] Maximize Restore

  Switch to side-by-side view

--- a/adminer/drivers/sqlite.inc.php
+++ b/adminer/drivers/sqlite.inc.php
@@ -510,7 +510,7 @@
 	}
 	
 	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])