MDL-29313 enforce varchar size limit

This commit is contained in:
Petr Skoda
2011-09-11 20:30:42 +02:00
parent b2cfdcf697
commit 257ad88f89
7 changed files with 119 additions and 8 deletions

View File

@@ -281,7 +281,7 @@ class mysql_sql_generator extends sql_generator {
/// Change the name of the field to perform the change
$xmldb_field_clone->setName($xmldb_field_clone->getName() . ' ' . $newname);
$fieldsql = $this->getFieldSQL($xmldb_field_clone);
$fieldsql = $this->getFieldSQL($xmldb_table, $xmldb_field_clone);
$sql = 'ALTER TABLE ' . $this->getTableName($xmldb_table) . ' CHANGE ' . $fieldsql;