diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-03-22 10:58:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 10:58:24 +0100 |
commit | acfa546efd24dd82befbdfe0e851e97e7e77a4f5 (patch) | |
tree | 8ef8c487e4f48dbf36a05ea99c4f81a439a58be7 | |
parent | c43d015fe540ee2aa10699c97010c5c33e5ca667 (diff) | |
parent | 3bed983a9c7fe53b221b20b45d4682d77f947965 (diff) | |
download | nextcloud-server-acfa546efd24dd82befbdfe0e851e97e7e77a4f5.tar.gz nextcloud-server-acfa546efd24dd82befbdfe0e851e97e7e77a4f5.zip |
Merge pull request #31580 from nextcloud/nickvergessen-patch-2
Limit missing primary key fail to new tables and comment out for now
-rw-r--r-- | lib/private/DB/MigrationService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index e7361cb4cab..5e146112120 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -634,8 +634,8 @@ class MigrationService { 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.'); } } |