Migrator.php 532 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations;
  4. use Doctrine\Migrations\Metadata\MigrationPlanList;
  5. use Doctrine\Migrations\Query\Query;
  6. /**
  7. * The Migrator interface is responsible for generating and executing the SQL for a migration.
  8. *
  9. * @internal
  10. */
  11. interface Migrator
  12. {
  13. /**
  14. * @return array<string, Query[]> A list of SQL statements executed, grouped by migration version
  15. */
  16. public function migrate(MigrationPlanList $migrationsPlan, MigratorConfiguration $migratorConfiguration): array;
  17. }