|
@@ 452-458 (lines=7) @@
|
| 449 |
|
* |
| 450 |
|
* @return array |
| 451 |
|
*/ |
| 452 |
|
public function getMigrateToSql(Schema $toSchema, AbstractPlatform $platform) |
| 453 |
|
{ |
| 454 |
|
$comparator = new Comparator(); |
| 455 |
|
$schemaDiff = $comparator->compare($this, $toSchema); |
| 456 |
|
|
| 457 |
|
return $schemaDiff->toSql($platform); |
| 458 |
|
} |
| 459 |
|
|
| 460 |
|
/** |
| 461 |
|
* @param \Doctrine\DBAL\Schema\Schema $fromSchema |
|
@@ 466-472 (lines=7) @@
|
| 463 |
|
* |
| 464 |
|
* @return array |
| 465 |
|
*/ |
| 466 |
|
public function getMigrateFromSql(Schema $fromSchema, AbstractPlatform $platform) |
| 467 |
|
{ |
| 468 |
|
$comparator = new Comparator(); |
| 469 |
|
$schemaDiff = $comparator->compare($fromSchema, $this); |
| 470 |
|
|
| 471 |
|
return $schemaDiff->toSql($platform); |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
/** |
| 475 |
|
* @param \Doctrine\DBAL\Schema\Visitor\Visitor $visitor |