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
af17bfb2
Commit
af17bfb2
authored
Mar 12, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285121: Only run "old" table checks if the database is MySQL
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=glob, a=justdave
parent
3dd2ede0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
checksetup.pl
checksetup.pl
+13
-1
No files found.
checksetup.pl
View file @
af17bfb2
...
@@ -1877,6 +1877,15 @@ if (!$class_count) {
...
@@ -1877,6 +1877,15 @@ if (!$class_count) {
# Update the tables to the current definition
# Update the tables to the current definition
###########################################################################
###########################################################################
# BEGIN LEGACY CHECKS
# The checks in this block are only run on old MySQL databases.
# The checks after this block are cross-db compatible.
# Look for "END LEGACY CHECKS" to find the end of this block.
# Both legacy code and modern code need this variable.
my
@admins
=
();
if
(
$dbh
->
isa
(
'Bugzilla::DB::Mysql'
))
{
# really old fields that were added before checksetup.pl existed
# really old fields that were added before checksetup.pl existed
# but aren't in very old bugzilla's (like 2.1)
# but aren't in very old bugzilla's (like 2.1)
# Steve Stock (sstock@iconnect-inc.com)
# Steve Stock (sstock@iconnect-inc.com)
...
@@ -2935,7 +2944,6 @@ sub ListBits {
...
@@ -2935,7 +2944,6 @@ sub ListBits {
return
@res
;
return
@res
;
}
}
my
@admins
=
();
# The groups system needs to be converted if groupset exists
# The groups system needs to be converted if groupset exists
if
(
$dbh
->
bz_get_field_def
(
"profiles"
,
"groupset"
))
{
if
(
$dbh
->
bz_get_field_def
(
"profiles"
,
"groupset"
))
{
$dbh
->
bz_add_field
(
'groups'
,
'last_changed'
,
'datetime not null'
);
$dbh
->
bz_add_field
(
'groups'
,
'last_changed'
,
'datetime not null'
);
...
@@ -3838,6 +3846,10 @@ $dbh->bz_change_field_type('bugs', 'votes', 'mediumint not null default 0');
...
@@ -3838,6 +3846,10 @@ $dbh->bz_change_field_type('bugs', 'votes', 'mediumint not null default 0');
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
# 2005-03-03 travis@sedsystems.ca -- Bug 41972
add_setting
(
"display_quips"
,
{
"on"
=>
1
,
"off"
=>
2
},
"on"
);
add_setting
(
"display_quips"
,
{
"on"
=>
1
,
"off"
=>
2
},
"on"
);
}
# END LEGACY CHECKS
# If you had to change the --TABLE-- definition in any way, then add your
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
# differential change code *** A B O V E *** this comment.
#
#
...
...
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