24 lines
534 B
PHP
24 lines
534 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Migrations\Provider;
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
|
|
|
/**
|
|
* The SchemaDiffProvider defines the interface used to provide the from and to schemas and to produce
|
|
* the SQL queries needed to migrate.
|
|
*
|
|
* @internal
|
|
*/
|
|
interface SchemaDiffProvider
|
|
{
|
|
public function createFromSchema(): Schema;
|
|
|
|
public function createToSchema(Schema $fromSchema): Schema;
|
|
|
|
/** @return string[] */
|
|
public function getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema): array;
|
|
}
|