mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 06:40:59 +08:00
34 lines
961 B
PHP
34 lines
961 B
PHP
<?php
|
|
namespace yiiunit\framework\db\sqlite;
|
|
|
|
use yiiunit\framework\db\SchemaTest;
|
|
|
|
/**
|
|
* @group db
|
|
* @group sqlite
|
|
*/
|
|
class SqliteSchemaTest extends SchemaTest
|
|
{
|
|
protected $driverName = 'sqlite';
|
|
|
|
public function getExpectedColumns()
|
|
{
|
|
$columns = parent::getExpectedColumns();
|
|
unset($columns['enum_col']);
|
|
unset($columns['bit_col']);
|
|
$columns['int_col']['dbType'] = 'integer';
|
|
$columns['int_col']['size'] = null;
|
|
$columns['int_col']['precision'] = null;
|
|
$columns['int_col2']['dbType'] = 'integer';
|
|
$columns['int_col2']['size'] = null;
|
|
$columns['int_col2']['precision'] = null;
|
|
$columns['bool_col']['type'] = 'boolean';
|
|
$columns['bool_col']['phpType'] = 'boolean';
|
|
$columns['bool_col2']['type'] = 'boolean';
|
|
$columns['bool_col2']['phpType'] = 'boolean';
|
|
$columns['bool_col2']['defaultValue'] = true;
|
|
return $columns;
|
|
}
|
|
|
|
}
|