From d3b93bd26a101cec6cb3e0b0155ea454ac73db9c Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 24 Sep 2006 15:26:49 +0000 Subject: [PATCH] Add skip parameters to one getFieldSQL call requiring them --- lib/xmldb/classes/generators/XMLDBGenerator.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); -- 2.39.5