Skip to content

Commit bc5f35c

Browse files
committed
reduce column length for MySQL 5.6 compatibility
1 parent 600e5d1 commit bc5f35c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Messenger/Transport/Doctrine/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ private function getSchema(): Schema
368368
$table->addColumn('headers', self::$useDeprecatedConstants ? Type::TEXT : Types::TEXT)
369369
->setNotnull(true);
370370
$table->addColumn('queue_name', self::$useDeprecatedConstants ? Type::STRING : Types::STRING)
371+
->setLength(190) // MySQL 5.6 only supports 191 characters on an indexed column in utf8mb4 mode
371372
->setNotnull(true);
372373
$table->addColumn('created_at', self::$useDeprecatedConstants ? Type::DATETIME : Types::DATETIME_MUTABLE)
373374
->setNotnull(true);

0 commit comments

Comments
 (0)