Skip to content
Snippets Groups Projects
Unverified Commit 4907b4e7 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #15289 from nextcloud/bugfix/15229/fix-non-default-prefixes

Remove the custom prefix from the table name length when checking on …
parents 265a284c b3e6cbc4
No related branches found
No related tags found
No related merge requests found
......@@ -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.');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment