Ensuring version order of database histroy.
This commit is contained in:
parent
52ea4a73c8
commit
08da2b0b81
|
|
@ -391,6 +391,12 @@ class VersionManager
|
|||
}
|
||||
|
||||
$historyInfo = Db::table('system_plugin_history')->where('code', $code)->get();
|
||||
|
||||
if (is_array($historyInfo)) {
|
||||
usort($historyInfo, function ($a, $b) {
|
||||
return version_compare($a->version, $b->version);
|
||||
});
|
||||
}
|
||||
return $this->databaseHistory[$code] = $historyInfo;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue