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
574f67fe
Commit
574f67fe
authored
Jun 26, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test break
parent
739f5fda
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
ColumnSchema.php
framework/db/ColumnSchema.php
+1
-0
Schema.php
framework/db/sqlite/Schema.php
+1
-0
SchemaTest.php
tests/unit/framework/db/SchemaTest.php
+2
-2
No files found.
framework/db/ColumnSchema.php
View file @
574f67fe
...
...
@@ -93,6 +93,7 @@ class ColumnSchema extends Object
return
$value
;
}
switch
(
$this
->
phpType
)
{
case
'resource'
:
case
'string'
:
return
is_resource
(
$value
)
?
$value
:
(
string
)
$value
;
case
'integer'
:
...
...
framework/db/sqlite/Schema.php
View file @
574f67fe
...
...
@@ -49,6 +49,7 @@ class Schema extends \yii\db\Schema
'varchar'
=>
self
::
TYPE_STRING
,
'string'
=>
self
::
TYPE_STRING
,
'char'
=>
self
::
TYPE_STRING
,
'blob'
=>
self
::
TYPE_BINARY
,
'datetime'
=>
self
::
TYPE_DATETIME
,
'year'
=>
self
::
TYPE_DATE
,
'date'
=>
self
::
TYPE_DATE
,
...
...
tests/unit/framework/db/SchemaTest.php
View file @
574f67fe
...
...
@@ -192,9 +192,9 @@ class SchemaTest extends DatabaseTestCase
'defaultValue'
=>
1.23
,
],
'blob_col'
=>
[
'type'
=>
'
string
'
,
'type'
=>
'
binary
'
,
'dbType'
=>
'blob'
,
'phpType'
=>
'
string
'
,
'phpType'
=>
'
resource
'
,
'allowNull'
=>
true
,
'autoIncrement'
=>
false
,
'enumValues'
=>
null
,
...
...
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