mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Remove _all_ variants of primary key columns from testCreateTableColumnTypes()
test
This commit is contained in:
@ -489,7 +489,9 @@ class QueryBuilderTest extends DatabaseTestCase
|
||||
$i = 0;
|
||||
foreach ($this->columnTypes() as $item) {
|
||||
list ($column, $builder, $expected) = $item;
|
||||
if (strncmp($column, 'pk', 2) !== 0) {
|
||||
if (!(strncmp($column, 'pk', 2) ||
|
||||
strncmp($column, 'bigpk', 5) ||
|
||||
strncmp($column, 'unsignedpk', 10))) {
|
||||
$columns['col' . ++$i] = str_replace('CHECK (value', 'CHECK ([[col' . $i . ']]', $column);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user