Skip to content

Commit acfa546

Browse files
authored
Merge pull request #31580 from nextcloud/nickvergessen-patch-2
Limit missing primary key fail to new tables and comment out for now
2 parents c43d015 + 3bed983 commit acfa546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/DB/MigrationService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,8 @@ public function ensureOracleConstraints(Schema $sourceSchema, Schema $targetSche
634634
if ($isUsingDefaultName && \strlen($table->getName()) - $prefixLength >= 23) {
635635
throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
636636
}
637-
} elseif (!$primaryKey instanceof Index) {
638-
throw new \InvalidArgumentException('Table "' . $table->getName() . '" has no primary key and therefor will not behave sane in clustered setups.');
637+
// } elseif (!$primaryKey instanceof Index && !$sourceTable instanceof Table) {
638+
// throw new \InvalidArgumentException('Table "' . $table->getName() . '" has no primary key and therefor will not behave sane in clustered setups.');
639639
}
640640
}
641641

0 commit comments

Comments
 (0)