mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Fix patch execution order
This commit is contained in:
@@ -806,7 +806,10 @@ abstract class base implements cache_cacheableInterface
|
||||
$upgrader->add_steps_complete(1)
|
||||
->add_steps(count($list_patches))
|
||||
->set_current_message(sprintf(_('Applying patches on %s'), $this->get_dbname()));
|
||||
ksort($list_patches);
|
||||
|
||||
uasort($list_patches, function (\patchInterface $patch1, \patchInterface $patch2) {
|
||||
return version::lt($patch1->get_release(), $patch2->get_release()) ? -1 : 1;
|
||||
});
|
||||
|
||||
$success = true;
|
||||
|
||||
|
Reference in New Issue
Block a user