5use Doctrine\DBAL\Platforms\AbstractPlatform;
6use Doctrine\DBAL\Schema\Comparator;
7use Doctrine\DBAL\Schema\Schema;
24 $this->platform = $platform;
27 private function getTableSchema( array $tableSpec ): Schema {
32 return $this->addTableToSchema(
new Schema(), $tableSpec );
36 $comparator = new Comparator();
37 $schemaDiff = $comparator->compare(
38 $this->getTableSchema( $schemaChangeSpec[
'before'] ),
39 $this->getTableSchema( $schemaChangeSpec[
'after'] )
41 return $schemaDiff->toSql( $this->platform );
if(!defined('MW_SETUP_CALLBACK'))