From bb33fb6dd7e022f8e4b231c8fa2c04131817be5a Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 9 Feb 2007 00:34:30 +0000 Subject: [PATCH] Limit table comments to 60cc for MySQL. MDL-7765 Merged from MOODLE_17_STABLE --- lib/xmldb/classes/generators/mysql/mysql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmldb/classes/generators/mysql/mysql.class.php b/lib/xmldb/classes/generators/mysql/mysql.class.php index a22df85e62..30967ab546 100644 --- a/lib/xmldb/classes/generators/mysql/mysql.class.php +++ b/lib/xmldb/classes/generators/mysql/mysql.class.php @@ -238,7 +238,7 @@ class XMLDBmysql extends XMLDBGenerator { if ($xmldb_table->getComment()) { $comment .= 'ALTER TABLE ' . $this->getTableName($xmldb_table); - $comment .= " COMMENT='" . substr($xmldb_table->getComment(), 0, 250) . "'"; + $comment .= " COMMENT='" . substr($xmldb_table->getComment(), 0, 60) . "'"; } return array($comment); } -- 2.39.5