Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8ecceb39
Commit
8ecceb39
authored
Jan 29, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2210: Mysql driver will now treat `tinyint(1)` as integer instead of boolean
parent
e1a8fa1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Schema.php
framework/db/mysql/Schema.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
8ecceb39
...
...
@@ -134,6 +134,7 @@ Yii Framework 2 Change Log
-
Chg #2161: Added ability to use
`return`
in
`Widget::run`
(samdark)
-
Chg #2173: Removed
`StringHelper::diff()`
, Moved
`phpspec/php-diff`
dependency from
`yiisoft/yii2`
to
`yiisoft/yii2-gii`
(samdark)
-
Chg #2175: QueryBuilder will now append UNION statements at the end of the primary SQL (qiangxue)
-
Chg #2210: Mysql driver will now treat
`tinyint(1)`
as integer instead of boolean (qiangxue)
-
Chg: Renamed
`yii\jui\Widget::clientEventsMap`
to
`clientEventMap`
(qiangxue)
-
Chg: Renamed
`ActiveRecord::getPopulatedRelations()`
to
`getRelatedRecords()`
(qiangxue)
-
Chg: Renamed
`attributeName`
and
`className`
to
`targetAttribute`
and
`targetClass`
for
`UniqueValidator`
and
`ExistValidator`
(qiangxue)
...
...
framework/db/mysql/Schema.php
View file @
8ecceb39
...
...
@@ -153,7 +153,7 @@ class Schema extends \yii\db\Schema
if
(
isset
(
$values
[
1
]))
{
$column
->
scale
=
(
int
)
$values
[
1
];
}
if
(
$column
->
size
===
1
&&
(
$type
===
'tinyint'
||
$type
===
'bit'
)
)
{
if
(
$column
->
size
===
1
&&
$type
===
'bit'
)
{
$column
->
type
=
'boolean'
;
}
elseif
(
$type
===
'bit'
)
{
if
(
$column
->
size
>
32
)
{
...
...
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