diff --git a/framework/console/controllers/MigrateController.php b/framework/console/controllers/MigrateController.php index 0cdd616baf..58941a3b3c 100644 --- a/framework/console/controllers/MigrateController.php +++ b/framework/console/controllers/MigrateController.php @@ -210,7 +210,8 @@ class MigrateController extends BaseMigrateController foreach ($rows as $row) { if ($row['version'] === self::BASE_MIGRATION) { continue; - } elseif (preg_match('/m?(\d{6}_?\d{6})(\D.*)?$/is', $row['version'], $matches)) { + } + if (preg_match('/m?(\d{6}_?\d{6})(\D.*)?$/is', $row['version'], $matches)) { $time = str_replace('_', '', $matches[1]); $history['m' . $time . $matches[2]] = $row; }