Update Comment limit on mysql

Created on 21 May 2025, 19 days ago

Problem/Motivation

About the comment limitation on mysql it still haves the old values from =<5.5.2.

MySQL ≤ 5.5.2: table comment limited to 60 characters and column comment to 255 characters.

namespace Drupal\mysql\Driver\Database\mysql;
/**
* MySQL implementation of \Drupal\Core\Database\Schema.
*/
class Schema extends DatabaseSchema {
/**
* Maximum length of a table comment in MySQL.
*/
const COMMENT_MAX_TABLE = 60;

/**
* Maximum length of a column comment in MySQL.
*/
const COMMENT_MAX_COLUMN = 255;

Proposed resolution

MySQL ≥ 5.5.3: table comment extended to up to 2,048 characters and column comment to up to 1,024 characters.

💬 Support request
Status

Active

Version

10.4

Component

database system

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024