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