File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ public function __construct(private readonly Connection $connection) {}
1515
1616 public function addPhinxMigrationTableSchema (AlterTableDefinitionStatementsEvent $ event ): void
1717 {
18- $ schemaManager = $ this ->connection ->getSchemaManager ();
18+ $ schemaManager = $ this ->connection ->createSchemaManager ();
1919
20- if (!$ schemaManager ->tablesExist (PhinxConfiguration::MIGRATION_TABLE_NAME )) {
20+ if (!$ schemaManager ->tablesExist ([ PhinxConfiguration::MIGRATION_TABLE_NAME ] )) {
2121 return ;
2222 }
2323
24- $ table = $ schemaManager ->listTableDetails (PhinxConfiguration::MIGRATION_TABLE_NAME );
24+ $ table = $ schemaManager ->introspectTable (PhinxConfiguration::MIGRATION_TABLE_NAME );
2525 $ schemaTableSQL = $ this ->buildSchemaTableSQL ($ this ->removeColumnCollations ($ table ));
2626
2727 $ event ->addSqlData ($ schemaTableSQL );
You can’t perform that action at this time.
0 commit comments