reduce column length for MySQL 5.6 compatibility

This commit is contained in:
Christian Flothmann 2020-07-29 10:26:17 +02:00
parent 600e5d1219
commit bc5f35c609

View File

@ -368,6 +368,7 @@ class Connection
$table->addColumn('headers', self::$useDeprecatedConstants ? Type::TEXT : Types::TEXT)
->setNotnull(true);
$table->addColumn('queue_name', self::$useDeprecatedConstants ? Type::STRING : Types::STRING)
->setLength(190) // MySQL 5.6 only supports 191 characters on an indexed column in utf8mb4 mode
->setNotnull(true);
$table->addColumn('created_at', self::$useDeprecatedConstants ? Type::DATETIME : Types::DATETIME_MUTABLE)
->setNotnull(true);