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
9ea6b6d3
Commit
9ea6b6d3
authored
Oct 14, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 451735: Wrong index for the series table
r/a=mkanat
parent
f0f0bc84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
Schema.pm
Bugzilla/DB/Schema.pm
+2
-2
DB.pm
Bugzilla/Install/DB.pm
+13
-0
No files found.
Bugzilla/DB/Schema.pm
View file @
9ea6b6d3
...
...
@@ -1304,8 +1304,8 @@ use constant ABSTRACT_SCHEMA => {
DEFAULT
=>
'FALSE'
},
],
INDEXES
=>
[
series_creator_idx
=>
{
FIELDS
=>
[
qw(creator
category subcategory name)
],
series_creator_idx
=>
[
'creator'
],
series_category_idx
=>
{
FIELDS
=>
[
qw(
category subcategory name)
],
TYPE
=>
'UNIQUE'
},
],
},
...
...
Bugzilla/Install/DB.pm
View file @
9ea6b6d3
...
...
@@ -637,6 +637,9 @@ sub update_table_definitions {
# 2010-10-09 LpSolit@gmail.com - Bug 505165
$dbh
->
bz_alter_column
(
'flags'
,
'setter_id'
,
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
});
# 2010-10-09 LpSolit@gmail.com - Bug 451735
_fix_series_indexes
();
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
...
...
@@ -3450,6 +3453,16 @@ sub _migrate_field_visibility_value {
}
}
sub
_fix_series_indexes
{
my
$dbh
=
Bugzilla
->
dbh
;
return
if
$dbh
->
bz_index_info
(
'series'
,
'series_category_idx'
);
$dbh
->
bz_drop_index
(
'series'
,
'series_creator_idx'
);
$dbh
->
bz_add_index
(
'series'
,
'series_creator_idx'
,
[
'creator'
]);
$dbh
->
bz_add_index
(
'series'
,
'series_category_idx'
,
{
FIELDS
=>
[
qw(category subcategory name)
],
TYPE
=>
'UNIQUE'
});
}
1
;
__END__
...
...
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