Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testGetCreateTableSQLWithColumnCollation() : void |
||
29 | { |
||
30 | $table = new Table('foo'); |
||
31 | $table->addColumn('no_collation', 'string'); |
||
32 | $table->addColumn('column_collation', 'string')->setPlatformOption('collation', 'en_US.UTF-8'); |
||
33 | |||
34 | self::assertSame( |
||
35 | ['CREATE TABLE foo (no_collation VARCHAR(255) NOT NULL, column_collation VARCHAR(255) NOT NULL COLLATE "en_US.UTF-8")'], |
||
36 | $this->_platform->getCreateTableSQL($table), |
||
37 | 'Column "no_collation" will use the default collation from the table/database and "column_collation" overwrites the collation on this column' |
||
38 | ); |
||
41 |