mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #15289 from nextcloud/bugfix/15229/fix-non-default-prefixes
Remove the custom prefix from the table name length when checking on …
This commit is contained in:
commit
4907b4e7e2
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ class MigrationService {
|
|||
if (!$isUsingDefaultName && \strlen($indexName) > 30) {
|
||||
throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
|
||||
}
|
||||
if ($isUsingDefaultName && \strlen($table->getName()) > 26) {
|
||||
if ($isUsingDefaultName && \strlen($table->getName()) - $prefixLength > 23) {
|
||||
throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue