Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6b2e132e
Commit
6b2e132e
authored
Apr 15, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 78276: change name of "when" index on bugs_activity.bug_when column
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=myk, a=myk
parent
d172c9db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Mysql.pm
Bugzilla/DB/Mysql.pm
+2
-1
Mysql.pm
Bugzilla/DB/Schema/Mysql.pm
+2
-2
No files found.
Bugzilla/DB/Mysql.pm
View file @
6b2e132e
...
...
@@ -278,7 +278,8 @@ sub bz_setup_database {
# to a standard. We store those names here, so that they
# can be properly renamed.
my
$bad_names
=
{
bugs_activity
=>
[
'bugs_activity_bugid_idx'
,
# 'when' is a possible leftover from Bugzillas before 2.8
bugs_activity
=>
[
'when'
,
'bugs_activity_bugid_idx'
,
'bugs_activity_bugwhen_idx'
],
longdescs
=>
[
'longdescs_bugid_idx'
,
'longdescs_bugwhen_idx'
],
...
...
Bugzilla/DB/Schema/Mysql.pm
View file @
6b2e132e
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment