mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fixed test break
This commit is contained in:
@ -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':
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user