$this->
addOption( 'version-selection-mode',
null,
InputOption::VALUE_REQUIRED,
'Define upto which version destructive migrations are executed. Possible values: "safe", "blue-green", "all".',
MigrationCollectionLoader::VERSION_SELECTION_SAFE
);
} protected function getMigrationGenerator(MigrationCollection
$collection, ?int
$until, ?int
$limit): \Generator
{ yield from $collection->
migrateDestructiveInSteps($until,
$limit);
} protected function getMigrationsCount(MigrationCollection
$collection, ?int
$until, ?int
$limit): int
{ return \
count($collection->
getExecutableDestructiveMigrations($until,
$limit));
} protected function collectMigrations(InputInterface
$input, string
$identifier): MigrationCollection
{ if ($identifier === 'core'
) { $mode =
$input->
getOption('version-selection-mode'
);