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
55d0f8a9
Commit
55d0f8a9
authored
Aug 25, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 303860: There is a database change in the wrong place in checksetup.pl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=justdave
parent
26a31ce1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
checksetup.pl
checksetup.pl
+10
-11
No files found.
checksetup.pl
View file @
55d0f8a9
...
...
@@ -3998,6 +3998,16 @@ if (!exists $dbh->bz_column_info('whine_queries', 'title')->{DEFAULT}) {
NOTNULL
=>
1
,
DEFAULT
=>
"''"
});
}
# 2005-06-29 bugreport@peshkin.net, bug 299156
if
(
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
&&
(
scalar
(
@
{
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
->
{
FIELDS
}})
<
2
)
)
{
$dbh
->
bz_drop_index
(
'attachments'
,
'attachments_submitter_id_idx'
);
}
$dbh
->
bz_add_index
(
'attachments'
,
'attachments_submitter_id_idx'
,
[
qw(submitter_id bug_id)
]);
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
...
...
@@ -4021,17 +4031,6 @@ AddGroup('editcomponents', 'Can create, destroy, and edit components.');
AddGroup
(
'editkeywords'
,
'Can create, destroy, and edit keywords.'
);
AddGroup
(
'admin'
,
'Administrators'
);
# 2005-06-29 bugreport@peshkin.net, bug 299156
if
(
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
&&
(
scalar
(
@
{
$dbh
->
bz_index_info
(
'attachments'
,
'attachments_submitter_id_idx'
)
->
{
FIELDS
}})
<
2
)
)
{
$dbh
->
bz_drop_index
(
'attachments'
,
'attachments_submitter_id_idx'
);
}
$dbh
->
bz_add_index
(
'attachments'
,
'attachments_submitter_id_idx'
,
[
qw(submitter_id bug_id)
]);
if
(
!
GroupDoesExist
(
"editbugs"
))
{
my
$id
=
AddGroup
(
'editbugs'
,
'Can edit all bug fields.'
,
".*"
);
my
$sth
=
$dbh
->
prepare
(
"SELECT userid FROM profiles"
);
...
...
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