| @@ 278-293 (lines=16) @@ | ||
| 275 | /** |
|
| 276 | * @group DBAL-423 |
|
| 277 | */ |
|
| 278 | public function testDiffListGuidTableColumn() |
|
| 279 | { |
|
| 280 | $offlineTable = new Table('list_guid_table_column'); |
|
| 281 | $offlineTable->addColumn('col_guid', 'guid'); |
|
| 282 | ||
| 283 | $this->_sm->dropAndCreateTable($offlineTable); |
|
| 284 | ||
| 285 | $onlineTable = $this->_sm->listTableDetails('list_guid_table_column'); |
|
| 286 | ||
| 287 | $comparator = new Comparator(); |
|
| 288 | ||
| 289 | self::assertFalse( |
|
| 290 | $comparator->diffTable($offlineTable, $onlineTable), |
|
| 291 | "No differences should be detected with the offline vs online schema." |
|
| 292 | ); |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * @group DBAL-1082 |
|
| @@ 1211-1222 (lines=12) @@ | ||
| 1208 | * @group 2782 |
|
| 1209 | * @group 6654 |
|
| 1210 | */ |
|
| 1211 | public function testComparatorShouldReturnFalseWhenLegacyJsonArrayColumnHasComment() : void |
|
| 1212 | { |
|
| 1213 | $table = new Table('json_array_test'); |
|
| 1214 | $table->addColumn('parameters', 'json_array'); |
|
| 1215 | ||
| 1216 | $this->_sm->createTable($table); |
|
| 1217 | ||
| 1218 | $comparator = new Comparator(); |
|
| 1219 | $tableDiff = $comparator->diffTable($this->_sm->listTableDetails('json_array_test'), $table); |
|
| 1220 | ||
| 1221 | self::assertFalse($tableDiff); |
|
| 1222 | } |
|
| 1223 | ||
| 1224 | /** |
|
| 1225 | * @group 2782 |
|