mirror of
https://github.com/nextcloud/server.git
synced 2026-04-01 15:18:09 -04:00
Merge pull request #31580 from nextcloud/nickvergessen-patch-2
Limit missing primary key fail to new tables and comment out for now
This commit is contained in:
commit
acfa546efd
1 changed files with 2 additions and 2 deletions
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue