diff --git a/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php b/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php index b5d98b29e8e..47ab58afc2a 100644 --- a/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php +++ b/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php @@ -38,23 +38,11 @@ public function __construct( * That command will also display information what is about to be migrated. * * @param string $contentRepository Identifier of the Content Repository to set up - * @param bool $resetProjections Advanced. Can be used in rare cases when the projections cannot be migrated to reset everything in advance. This requires a full replay afterwards. */ - public function setupCommand(string $contentRepository = 'default', bool $resetProjections = false): void + public function setupCommand(string $contentRepository = 'default'): void { $contentRepositoryId = ContentRepositoryId::fromString($contentRepository); - if ($resetProjections) { - if (!$this->output->askConfirmation(sprintf('> Advanced Mode. The flag --reset-projections will reset all projections in "%s", which leaves you with empty projections to be replayed. Are you sure to proceed? (y/n) ', $contentRepositoryId->value), false)) { - $this->outputLine('Abort.'); - return; - } - - $projectionService = $this->contentRepositoryRegistry->buildService($contentRepositoryId, $this->projectionServiceFactory); - $projectionService->resetAllProjections(); - $this->outputLine('All projections of Content Repository "%s" were resettet.', [$contentRepositoryId->value]); - } - $this->contentRepositoryRegistry->get($contentRepositoryId)->setUp(); $this->outputLine('Content Repository "%s" was set up', [$contentRepositoryId->value]); }