From 6b2e132ec32b657e8f806eedc4d9f06fc66131ef Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Fri, 15 Apr 2005 05:49:25 +0000 Subject: Bug 78276: change name of "when" index on bugs_activity.bug_when column Patch By Max Kanat-Alexander r=myk, a=myk --- Bugzilla/DB/Schema/Mysql.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB/Schema') diff --git a/Bugzilla/DB/Schema/Mysql.pm b/Bugzilla/DB/Schema/Mysql.pm index 07d7036e4..cc30246cc 100644 --- a/Bugzilla/DB/Schema/Mysql.pm +++ b/Bugzilla/DB/Schema/Mysql.pm @@ -90,7 +90,7 @@ sub _get_create_index_ddl { my $sql = "CREATE "; $sql .= "$index_type " if ($index_type eq 'UNIQUE' || $index_type eq 'FULLTEXT'); - $sql .= "INDEX $index_name ON $table_name \(" . + $sql .= "INDEX \`$index_name\` ON $table_name \(" . join(", ", @$index_fields) . "\)"; return($sql); @@ -107,7 +107,7 @@ sub get_alter_column_ddl { sub get_drop_index_ddl { my ($self, $table, $name) = @_; - return ("DROP INDEX $name ON $table"); + return ("DROP INDEX \`$name\` ON $table"); } sub get_rename_column_ddl { -- cgit v1.2.1