From 657d11eeb9022dc5e333c8acc477d7bbb4417e62 Mon Sep 17 00:00:00 2001 From: Alejandro Ibarra Date: Fri, 26 Apr 2024 11:50:03 +0200 Subject: [PATCH] 696 - Fix table method to add the table to array as phinx does --- src/AbstractMigration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AbstractMigration.php b/src/AbstractMigration.php index e2cac1a3..65dcb5dc 100644 --- a/src/AbstractMigration.php +++ b/src/AbstractMigration.php @@ -45,6 +45,7 @@ public function table(string $tableName, array $options = []): Table } $table = new Table($tableName, $options, $this->getAdapter()); + $this->tables[] = $table; return $table; }