Skip to content

Commit b6ea86e

Browse files
bug #37697 [Messenger] reduce column length for MySQL 5.6 compatibility (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Messenger] reduce column length for MySQL 5.6 compatibility | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #37116 | License | MIT | Doc PR | Commits ------- bc5f35c reduce column length for MySQL 5.6 compatibility
2 parents fbcef6e + bc5f35c commit b6ea86e

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)