diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-30 14:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 14:18:55 +0200 |
commit | 4907b4e7e2722bec4a5ee546064f64e83453a398 (patch) | |
tree | 29620e907a1bdee9165ce33bd21be093e3ac321b /lib/private | |
parent | 265a284c70fe7e395088b9d1cc4f3d83f0e964fa (diff) | |
parent | b3e6cbc4c5eb02e2de3b496ea08166dcca03b2fe (diff) | |
download | nextcloud-server-4907b4e7e2722bec4a5ee546064f64e83453a398.tar.gz nextcloud-server-4907b4e7e2722bec4a5ee546064f64e83453a398.zip |
Merge pull request #15289 from nextcloud/bugfix/15229/fix-non-default-prefixes
Remove the custom prefix from the table name length when checking on …
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/DB/MigrationService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php index d26337990d1..269400c3ba9 100644 --- a/lib/private/DB/MigrationService.php +++ b/lib/private/DB/MigrationService.php @@ -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.'); } } |