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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
568b941f
Commit
568b941f
authored
Sep 28, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 45384: checksetup.pl fails to update very old bugzilla (10/1998) databases.
patch submitted by sstock@iconnect-inc.com
parent
84bf5f80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
checksetup.pl
checksetup.pl
+16
-0
No files found.
checksetup.pl
View file @
568b941f
...
...
@@ -926,6 +926,10 @@ AddGroup 'creategroups', 'Can create and destroy groups.';
AddGroup
'editcomponents'
,
'Can create, destroy, and edit components.'
;
AddGroup
'editkeywords'
,
'Can create, destroy, and edit keywords.'
;
# Add the groupset field here because this code is run before the
# code that updates the database structure.
AddField
(
'profiles'
,
'groupset'
,
'bigint not null'
);
if
(
!
GroupExists
(
"editbugs"
))
{
my
$id
=
AddGroup
(
'editbugs'
,
'Can edit all aspects of any bug.'
,
".*"
);
$dbh
->
do
(
"UPDATE profiles SET groupset = groupset | $id"
);
...
...
@@ -1245,6 +1249,18 @@ sub DropField ($$)
$::regenerateshadow
=
0
;
# really old fields that were added before checksetup.pl existed
# but aren't in very old bugzilla's (like 2.1)
# Steve Stock (sstock@iconnect-inc.com)
AddField
(
'bugs'
,
'target_milestone'
,
'varchar(20) not null default "---"'
);
AddField
(
'bugs'
,
'groupset'
,
'bigint not null'
);
AddField
(
'bugs'
,
'qa_contact'
,
'mediumint not null'
);
AddField
(
'bugs'
,
'status_whiteboard'
,
'mediumtext not null'
);
AddField
(
'products'
,
'disallownew'
,
'tinyint not null'
);
AddField
(
'products'
,
'milestoneurl'
,
'tinytext not null'
);
AddField
(
'components'
,
'initialqacontact'
,
'tinytext not null'
);
AddField
(
'components'
,
'description'
,
'mediumtext not null'
);
ChangeFieldType
(
'components'
,
'program'
,
'varchar(64)'
);
# 1999-05-12 Added a pref to control how much email you get. This needs a new
...
...
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