It helps to migrate with multiple directories.
add to the require section of your composer.json:
"uzproger/migrator": "*",
add to the console.php:
...
'controllerMap' => [
'migrate' => [
'class' => 'uzproger\migrator\MigrateController',
'additionalPaths' => [
[
'name' => 'First Migration Path Name',
'path' => 'First Migration Full Path',
],
[
'name' => 'Second Migration Path Name',
'path' => 'Second Migration Full Path',
],
...
],
],
...
],