diff --git a/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php b/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php index d51eabd5ef2..50eb79b7315 100644 --- a/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php +++ b/Neos.ContentRepositoryRegistry/Classes/Service/EventMigrationService.php @@ -385,24 +385,35 @@ public function migratePayloadToValidWorkspaceNames(\Closure $outputFn): void $eventTableName = DoctrineEventStoreFactory::databaseTableName($this->contentRepositoryId); $this->connection->beginTransaction(); - $statement = <<connection->executeStatement($statement); + $affectedRowsWorkspaceName = $this->connection->executeStatement($statementWorkspaceName); + + $statementBaseWorkspaceName = <<connection->executeStatement($statementBaseWorkspaceName); $this->connection->commit(); - if ($affectedRows === 0) { + if ($affectedRowsWorkspaceName + $affectedRowsBaseWorkspaceName === 0) { $outputFn('Migration was not necessary.'); return; } $outputFn(); - $outputFn(sprintf('Migration applied to %s events.', $affectedRows)); + $outputFn(sprintf('Migration applied to %s events and changed the workspaceName.', $affectedRowsWorkspaceName)); + $outputFn(sprintf('Migration applied to %s events and changed the baseWorkspaceName.', $affectedRowsBaseWorkspaceName)); } /** ------------------------ */