From: stronk7 Date: Sun, 24 Sep 2006 15:26:49 +0000 (+0000) Subject: Add skip parameters to one getFieldSQL call requiring them X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d3b93bd26a101cec6cb3e0b0155ea454ac73db9c;p=moodle.git Add skip parameters to one getFieldSQL call requiring them --- diff --git a/lib/xmldb/classes/generators/XMLDBGenerator.class.php b/lib/xmldb/classes/generators/XMLDBGenerator.class.php index f7a1e2e2f8..6555ee5161 100644 --- a/lib/xmldb/classes/generators/XMLDBGenerator.class.php +++ b/lib/xmldb/classes/generators/XMLDBGenerator.class.php @@ -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());