summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-12-05 14:38:28 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-12-10 11:01:26 +0100
commit059968e1c705f5b06cd6049f1a7ad05a123f5500 (patch)
treed777ed35aa8ebba888c6105fe914af298db0ed15 /lib/private/DB
parentb78a141b0b003f6de04f16863e0fb67f28658dab (diff)
downloadnextcloud-server-059968e1c705f5b06cd6049f1a7ad05a123f5500.tar.gz
nextcloud-server-059968e1c705f5b06cd6049f1a7ad05a123f5500.zip
Pick a shorter name for the transfer ownership table
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/MigrationService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 71f81d3b1da..9f5b5bfe72b 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -550,7 +550,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()) - $prefixLength > 23) {
+ if ($isUsingDefaultName && \strlen($table->getName()) - $prefixLength >= 23) {
throw new \InvalidArgumentException('Primary index name on "' . $table->getName() . '" is too long.');
}
}