SchemaDiffProvider.php 534 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Provider;
  4. use Doctrine\DBAL\Schema\Schema;
  5. /**
  6. * The SchemaDiffProvider defines the interface used to provide the from and to schemas and to produce
  7. * the SQL queries needed to migrate.
  8. *
  9. * @internal
  10. */
  11. interface SchemaDiffProvider
  12. {
  13. public function createFromSchema(): Schema;
  14. public function createToSchema(Schema $fromSchema): Schema;
  15. /** @return string[] */
  16. public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema): array;
  17. }