@@ 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 |
@@ 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 |