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
16f28856
Commit
16f28856
authored
Aug 27, 2010
by
Tiago Mello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 479400: Bring _add_visiblity_value_to_value_tables routine back
to the code. r/a=mkanat
parent
e244627e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
DB.pm
Bugzilla/Install/DB.pm
+16
-0
No files found.
Bugzilla/Install/DB.pm
View file @
16f28856
...
...
@@ -563,6 +563,8 @@ sub update_table_definitions {
# 2008-09-07 LpSolit@gmail.com - Bug 452893
_fix_illegal_flag_modification_dates
();
_add_visiblity_value_to_value_tables
();
# 2009-03-02 arbingersys@gmail.com - Bug 423613
_add_extern_id_index
();
...
...
@@ -3208,6 +3210,20 @@ sub _fix_illegal_flag_modification_dates {
print
"$rows flags had an illegal modification date. Fixed!\n"
if
(
$rows
=~
/^\d+$/
);
}
sub
_add_visiblity_value_to_value_tables
{
my
$dbh
=
Bugzilla
->
dbh
;
my
@standard_fields
=
qw(bug_status resolution priority bug_severity op_sys rep_platform)
;
my
$custom_fields
=
$dbh
->
selectcol_arrayref
(
'SELECT name FROM fielddefs WHERE custom = 1 AND type IN(?,?)'
,
undef
,
FIELD_TYPE_SINGLE_SELECT
,
FIELD_TYPE_MULTI_SELECT
);
foreach
my
$field
(
@standard_fields
,
@$custom_fields
)
{
$dbh
->
bz_add_column
(
$field
,
'visibility_value_id'
,
{
TYPE
=>
'INT2'
});
$dbh
->
bz_add_index
(
$field
,
"${field}_visibility_value_id_idx"
,
[
'visibility_value_id'
]);
}
}
sub
_add_extern_id_index
{
my
$dbh
=
Bugzilla
->
dbh
;
if
(
!
$dbh
->
bz_index_info
(
'profiles'
,
'profiles_extern_id_idx'
))
{
...
...
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