Skip to content

Commit e83e710

Browse files
committed
fixed order of execution of update scripts so they are executed from old to new
1 parent cb1aeff commit e83e710

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/install/updates/update.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
if ($upgradePossible) { // we can actually check if there are upgrades to be applied
4646
$allFiles = scandir(dirname(__FILE__));
4747
usort($allFiles, array("Util", "updateVersionComparison"));
48+
$allFiles = array_reverse($allFiles);
4849
foreach ($allFiles as $file) {
4950
if (Util::startsWith($file, "update_v")) {
5051
$startVersion = substr($file, 8, strpos($file, "_", 7) - 8);

0 commit comments

Comments
 (0)