mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
add migration name to sort
This commit is contained in:
@ -209,7 +209,7 @@ class MigrateController extends BaseMigrateController
|
||||
foreach ($rows as $row) {
|
||||
if (preg_match('/m?(\d{6}_?\d{6})(\D.*)?$/is', $row['version'], $matches)) {
|
||||
$time = str_replace('_', '', $matches[1]);
|
||||
$history['m' . $time] = $row;
|
||||
$history['m' . $time . $matches[2]] = $row;
|
||||
}
|
||||
}
|
||||
ksort($history);
|
||||
|
Reference in New Issue
Block a user