]> git.mjollnir.org Git - moodle.git/commitdiff
Limit table comments to 60cc for MySQL. MDL-7765
authorstronk7 <stronk7>
Fri, 9 Feb 2007 00:34:30 +0000 (00:34 +0000)
committerstronk7 <stronk7>
Fri, 9 Feb 2007 00:34:30 +0000 (00:34 +0000)
Merged from MOODLE_17_STABLE

lib/xmldb/classes/generators/mysql/mysql.class.php

index a22df85e6284e26303207f1abbc8535c6a753498..30967ab54693157a5d6d16b4baa716de83bd0694 100644 (file)
@@ -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);
     }