@@ -497,7 +497,7 @@ public function dropView(string $name): void
497
497
*/
498
498
public function createSchemaObjects (Schema $ schema ): void
499
499
{
500
- $ this ->_execSql ($ schema ->toSql ($ this ->platform ));
500
+ $ this ->executeStatements ($ schema ->toSql ($ this ->platform ));
501
501
}
502
502
503
503
/**
@@ -519,7 +519,7 @@ public function createDatabase(string $database): void
519
519
*/
520
520
public function createTable (Table $ table ): void
521
521
{
522
- $ this ->_execSql ($ this ->platform ->getCreateTableSQL ($ table ));
522
+ $ this ->executeStatements ($ this ->platform ->getCreateTableSQL ($ table ));
523
523
}
524
524
525
525
/**
@@ -595,7 +595,7 @@ public function createView(View $view): void
595
595
*/
596
596
public function dropSchemaObjects (Schema $ schema ): void
597
597
{
598
- $ this ->_execSql ($ schema ->toDropSql ($ this ->platform ));
598
+ $ this ->executeStatements ($ schema ->toDropSql ($ this ->platform ));
599
599
}
600
600
601
601
/**
@@ -605,7 +605,7 @@ public function dropSchemaObjects(Schema $schema): void
605
605
*/
606
606
public function alterSchema (SchemaDiff $ schemaDiff ): void
607
607
{
608
- $ this ->_execSql ($ schemaDiff ->toSql ($ this ->platform ));
608
+ $ this ->executeStatements ($ schemaDiff ->toSql ($ this ->platform ));
609
609
}
610
610
611
611
/**
@@ -630,7 +630,7 @@ public function migrateSchema(Schema $toSchema): void
630
630
*/
631
631
public function alterTable (TableDiff $ tableDiff ): void
632
632
{
633
- $ this ->_execSql ($ this ->platform ->getAlterTableSQL ($ tableDiff ));
633
+ $ this ->executeStatements ($ this ->platform ->getAlterTableSQL ($ tableDiff ));
634
634
}
635
635
636
636
/**
@@ -833,15 +833,13 @@ protected function _getPortableTableForeignKeysList(array $tableForeignKeys): ar
833
833
abstract protected function _getPortableTableForeignKeyDefinition (array $ tableForeignKey ): ForeignKeyConstraint ;
834
834
835
835
/**
836
- * @internal
837
- *
838
- * @param array<int, string>|string $sql
836
+ * @param array<int, string> $sql
839
837
*
840
838
* @throws Exception
841
839
*/
842
- protected function _execSql (array | string $ sql ): void
840
+ private function executeStatements (array $ sql ): void
843
841
{
844
- foreach (( array ) $ sql as $ query ) {
842
+ foreach ($ sql as $ query ) {
845
843
$ this ->connection ->executeStatement ($ query );
846
844
}
847
845
}
0 commit comments