diff options
-rw-r--r-- | Bugzilla/DB/Schema.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index c2c884e6d..c45419a37 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1488,10 +1488,10 @@ sub _get_create_index_ddl { =cut - my($self, $table_name, $index_name, $index_fields, $index_type) = @_; + my ($self, $table_name, $index_name, $index_fields, $index_type) = @_; my $sql = "CREATE "; - $sql .= "$index_type " if ($index_type eq 'UNIQUE'); + $sql .= "$index_type " if ($index_type && $index_type eq 'UNIQUE'); $sql .= "INDEX $index_name ON $table_name \(" . join(", ", @$index_fields) . "\)"; |