From b1511678276980b01e5ad4be3e78e55c4ae0ef54 Mon Sep 17 00:00:00 2001 From: saeid Date: Fri, 17 Apr 2020 03:52:26 +0430 Subject: [PATCH] disable cache --- src/Command/BakeMigrationDiffCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Command/BakeMigrationDiffCommand.php b/src/Command/BakeMigrationDiffCommand.php index 21fdafa3..7e24bb32 100644 --- a/src/Command/BakeMigrationDiffCommand.php +++ b/src/Command/BakeMigrationDiffCommand.php @@ -536,7 +536,9 @@ protected function getCurrentSchema() return $schema; } - $collection = ConnectionManager::get($this->connection)->getSchemaCollection(); + $connection = ConnectionManager::get($this->connection); + $connection->cacheMetadata(false); + $collection = $connection->getSchemaCollection(); foreach ($this->tables as $table) { if (preg_match("/^.*phinxlog$/", $table) === 1) { continue;