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
9e7eef7d
Commit
9e7eef7d
authored
Apr 05, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285345: Need to change MySQL tinyint(1) fields to plain tinyint
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=myk
parent
adf5bbdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
checksetup.pl
checksetup.pl
+20
-0
No files found.
checksetup.pl
View file @
9e7eef7d
...
...
@@ -3948,6 +3948,26 @@ sub CloneEmailEvent {
}
}
# 2005-03-27: Standardize all boolean fields to plain "tinyint"
if
(
$dbh
->
bz_get_field_def
(
'quips'
,
'approved'
)
->
[
1
]
eq
'tinyint(1)'
)
{
$dbh
->
bz_change_field_type
(
'quips'
,
'approved'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'series'
,
'public'
,
'tinyint not null default 0'
);
$dbh
->
bz_change_field_type
(
'bug_status'
,
'isactive'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'rep_platform'
,
'isactive'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'resolution'
,
'isactive'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'op_sys'
,
'isactive'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'bug_severity'
,
'isactive'
,
'tinyint not null default 1'
);
$dbh
->
bz_change_field_type
(
'priority'
,
'isactive'
,
'tinyint not null default 1'
);
}
}
# END LEGACY CHECKS
# 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