summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB/Schema.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/DB/Schema.pm')
-rw-r--r--Bugzilla/DB/Schema.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index a4c1019b8..89ae99a62 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -206,6 +206,7 @@ update this column in this table."
=cut
use constant SCHEMA_VERSION => '2.00';
+use constant ADD_COLUMN => 'ADD COLUMN';
use constant ABSTRACT_SCHEMA => {
# BUG-RELATED TABLES
@@ -1750,7 +1751,7 @@ sub get_add_column_ddl {
my ($self, $table, $column, $definition, $init_value) = @_;
my @statements;
- push(@statements, "ALTER TABLE $table ADD COLUMN $column " .
+ push(@statements, "ALTER TABLE $table". ADD_COLUMN ." $column " .
$self->get_type_ddl($definition));
# XXX - Note that although this works for MySQL, most databases will fail