diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index e7361cb4cab5e..5e14611212057 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -634,8 +634,8 @@ public function ensureOracleConstraints(Schema $sourceSchema, Schema $targetSche if ($isUsingDefaultName && \strlen($table->getName()) - $prefixLength >= 23) { throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.'); } - } elseif (!$primaryKey instanceof Index) { - throw new \InvalidArgumentException('Table "' . $table->getName() . '" has no primary key and therefor will not behave sane in clustered setups.'); + // } elseif (!$primaryKey instanceof Index && !$sourceTable instanceof Table) { + // throw new \InvalidArgumentException('Table "' . $table->getName() . '" has no primary key and therefor will not behave sane in clustered setups.'); } }