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
c6c829a7
Commit
c6c829a7
authored
Apr 23, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 290277: Index renaming may fail if misnamed PRIMARY indexes exist
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=mkanat, a=justdave
parent
1f6e1616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
Mysql.pm
Bugzilla/DB/Mysql.pm
+14
-1
No files found.
Bugzilla/DB/Mysql.pm
View file @
c6c829a7
...
...
@@ -277,17 +277,30 @@ sub bz_setup_database {
# Certain indexes had names in Schema that did not easily conform
# to a standard. We store those names here, so that they
# can be properly renamed.
# Also, sometimes an old mysqldump would incorrectly rename
# unique indexes to "PRIMARY", so we address that here, also.
my
$bad_names
=
{
# 'when' is a possible leftover from Bugzillas before 2.8
bugs_activity
=>
[
'when'
,
'bugs_activity_bugid_idx'
,
'bugs_activity_bugwhen_idx'
],
cc
=>
[
'PRIMARY'
],
longdescs
=>
[
'longdescs_bugid_idx'
,
'longdescs_bugwhen_idx'
],
flags
=>
[
'flags_bidattid_idx'
],
flaginclusions
=>
[
'flaginclusions_tpcid_idx'
],
flagexclusions
=>
[
'flagexclusions_tpc_id_idx'
],
keywords
=>
[
'PRIMARY'
],
milestones
=>
[
'PRIMARY'
],
profiles_activity
=>
[
'profiles_activity_when_idx'
],
group_control_map
=>
[
'group_control_map_gid_idx'
]
group_control_map
=>
[
'group_control_map_gid_idx'
,
'PRIMARY'
],
user_group_map
=>
[
'PRIMARY'
],
group_group_map
=>
[
'PRIMARY'
],
email_setting
=>
[
'PRIMARY'
],
bug_group_map
=>
[
'PRIMARY'
],
category_group_map
=>
[
'PRIMARY'
],
watch
=>
[
'PRIMARY'
],
namedqueries
=>
[
'PRIMARY'
],
series_data
=>
[
'PRIMARY'
],
# series_categories is dealt with below, not here.
};
...
...
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