Skip to content
Snippets Groups Projects
Unverified Commit b3e6cbc4 authored by Joas Schilling's avatar Joas Schilling
Browse files

Remove the custom prefix from the table name length when checking on the default primary index

parent 01410491
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