Remove the custom prefix from the table name length when checking on the default primary index
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
65ca68134a
commit
be5cc3a973
|
@ -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 New Issue