Skip to content

Commit

Permalink
Merge pull request #453 from cakephp/4.x-cache
Browse files Browse the repository at this point in the history
disable  cache
  • Loading branch information
dereuromark authored May 9, 2020
2 parents 63f3dfc + b151167 commit 5275147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Command/BakeMigrationDiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,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;
Expand Down

0 comments on commit 5275147

Please sign in to comment.