Fix #11945: Fix Schema Builder MySQL column definition order

This commit is contained in:
simialbi
2020-02-22 15:17:06 +01:00
committed by GitHub
parent 6e9764b467
commit 79e68767db
3 changed files with 10 additions and 3 deletions

View File

@ -8,7 +8,7 @@
namespace yiiunit\framework\db\mysql;
use yii\db\mysql\ColumnSchemaBuilder;
use yii\db\Schema;
use yii\db\mysql\Schema;
/**
* ColumnSchemaBuilderTest tests ColumnSchemaBuilder for MySQL.
@ -44,6 +44,12 @@ class ColumnSchemaBuilderTest extends \yiiunit\framework\db\ColumnSchemaBuilderT
['integer(10) COMMENT \'test\'', Schema::TYPE_INTEGER, 10, [
['comment', 'test'],
]],
// https://github.com/yiisoft/yii2/issues/11945 # TODO: real test against database
['string(50) NOT NULL COMMENT \'Property name\' COLLATE ascii_general_ci', Schema::TYPE_STRING, 50, [
['comment', 'Property name'],
['append', 'COLLATE ascii_general_ci'],
['notNull']
]],
];
}
}