]> git.mjollnir.org Git - moodle.git/commitdiff
One more use of getTableName() added.
authorstronk7 <stronk7>
Sat, 30 Sep 2006 12:34:17 +0000 (12:34 +0000)
committerstronk7 <stronk7>
Sat, 30 Sep 2006 12:34:17 +0000 (12:34 +0000)
lib/xmldb/classes/generators/XMLDBGenerator.class.php

index 1dfecd4656c1adbb78523506fe6435c0119241b2..5593cd0ea1d9101a5154540b27b4ab865b0f9000 100644 (file)
@@ -560,7 +560,7 @@ class XMLDBgenerator {
         $fieldname = $this->getEncQuoted($xmldb_field->getName());
 
     /// Build de alter sentence using the alter_column_sql template
-        $alter = str_replace('TABLENAME', $this->getEncQuoted($this->prefix . $xmldb_table->getName()), $this->alter_column_sql);
+        $alter = str_replace('TABLENAME', $this->getTableName($xmldb_table), $this->alter_column_sql);
         $alter = str_replace('COLUMNSPECS', $this->getFieldSQL($xmldb_field, $this->alter_column_skip_type,
                                                                              $this->alter_column_skip_default,
                                                                              $this->alter_column_skip_notnull), $alter);