You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
961 B
34 lines
961 B
11 years ago
|
<?php
|
||
|
namespace yiiunit\framework\db\sqlite;
|
||
|
|
||
|
use yiiunit\framework\db\SchemaTest;
|
||
|
|
||
11 years ago
|
/**
|
||
|
* @group db
|
||
|
* @group sqlite
|
||
|
*/
|
||
11 years ago
|
class SqliteSchemaTest extends SchemaTest
|
||
|
{
|
||
11 years ago
|
protected $driverName = 'sqlite';
|
||
10 years ago
|
|
||
|
public function getExpectedColumns()
|
||
|
{
|
||
|
$columns = parent::getExpectedColumns();
|
||
|
unset($columns['enum_col']);
|
||
10 years ago
|
unset($columns['bit_col']);
|
||
10 years ago
|
$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;
|
||
|
}
|
||
|
|
||
11 years ago
|
}
|