]> git.mjollnir.org Git - moodle.git/commitdiff
Add skip parameters to one getFieldSQL call requiring them
authorstronk7 <stronk7>
Sun, 24 Sep 2006 15:26:49 +0000 (15:26 +0000)
committerstronk7 <stronk7>
Sun, 24 Sep 2006 15:26:49 +0000 (15:26 +0000)
lib/xmldb/classes/generators/XMLDBGenerator.class.php

index f7a1e2e2f8df4a85b4f1212aa4650edd77efc4ac..6555ee5161d273ee835a8bf915836137f34d262b 100644 (file)
@@ -505,7 +505,10 @@ class XMLDBgenerator {
         $tablename = $this->getEncQuoted($this->prefix . $xmldb_table->getName());
 
     /// Build the standard alter table add
-        $altertable = 'ALTER TABLE ' . $tablename . ' ADD ' . $this->getFieldSQL($xmldb_field);
+        $altertable = 'ALTER TABLE ' . $tablename . ' ADD ' . 
+                           $this->getFieldSQL($xmldb_field, $this->alter_column_skip_type,
+                                                            $this->alter_column_skip_default,
+                                                            $this->alter_column_skip_notnull);
     /// Add the after clause if necesary
         if ($this->add_after_clause && $xmldb_field->getPrevious()) {
             $altertable .= ' after ' . $this->getEncQuoted($xmldb_field->getPrevious());