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
ec1a8776
Commit
ec1a8776
authored
Aug 23, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 304997: "Setting any 'other' op_sys to 'Other'" runs every time you run checksetup
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=myk
parent
31c2e0de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
checksetup.pl
checksetup.pl
+19
-12
No files found.
checksetup.pl
View file @
ec1a8776
...
...
@@ -3966,16 +3966,22 @@ if (!exists $dbh->bz_column_info('milestones', 'sortkey')->{DEFAULT}) {
# when all bug fields have been correctly set.
$dbh
->
bz_alter_column
(
'bugs'
,
'creation_ts'
,
{
TYPE
=>
'DATETIME'
});
# Old Bugzillas have "other" as an OS choice, new ones have "Other"
# (capital O).
# XXX - This should be moved inside of a later schema change, once
# we have one to move it to the inside of.
print
"Setting any 'other' op_sys to 'Other'...\n"
;
$dbh
->
do
(
'UPDATE op_sys SET value = ? WHERE value = ?'
,
if
(
!
exists
$dbh
->
bz_column_info
(
'whine_queries'
,
'title'
)
->
{
DEFAULT
})
{
# The below change actually has nothing to do with the whine_queries
# change, it just has to be contained within a schema change so that
# it doesn't run every time we run checksetup.
# Old Bugzillas have "other" as an OS choice, new ones have "Other"
# (capital O).
# XXX - This should be moved inside of a later schema change, once
# we have one to move it to the inside of.
print
"Setting any 'other' op_sys to 'Other'...\n"
;
$dbh
->
do
(
'UPDATE op_sys SET value = ? WHERE value = ?'
,
undef
,
"Other"
,
"other"
);
$dbh
->
do
(
'UPDATE bugs SET op_sys = ? WHERE op_sys = ?'
,
$dbh
->
do
(
'UPDATE bugs SET op_sys = ? WHERE op_sys = ?'
,
undef
,
"Other"
,
"other"
);
if
(
Param
(
'defaultopsys'
)
eq
'other'
)
{
if
(
Param
(
'defaultopsys'
)
eq
'other'
)
{
# We can't actually fix the param here, because WriteParams() will
# make $datadir/params unwriteable to the webservergroup.
# It's too much of an ugly hack to copy the permission-fixing code
...
...
@@ -3984,12 +3990,13 @@ if (Param('defaultopsys') eq 'other') {
print
"WARNING: Your 'defaultopsys' param is set to 'other', but"
.
" Bugzilla now\n"
.
" uses 'Other' (capital O).\n"
;
}
}
# Add a DEFAULT to whine_queries stuff so that editwhines.cgi
# works on PostgreSQL.
$dbh
->
bz_alter_column
(
'whine_queries'
,
'title'
,
{
TYPE
=>
'varchar(128)'
,
# Add a DEFAULT to whine_queries stuff so that editwhines.cgi
# works on PostgreSQL.
$dbh
->
bz_alter_column
(
'whine_queries'
,
'title'
,
{
TYPE
=>
'varchar(128)'
,
NOTNULL
=>
1
,
DEFAULT
=>
"''"
});
}
# If you had to change the --TABLE-- definition in any way, then add your
...
...
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