mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Disable the cache when running schema commands.
This prevents stale cached schema definitions from preventing updates. Fixes #3690
This commit is contained in:
parent
0ba1aa6d38
commit
f1da6b4cbc
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ class SchemaShell extends AppShell {
|
|||
$this->out('Cake Schema Shell');
|
||||
$this->hr();
|
||||
|
||||
Configure::write('Cache.disable', 1);
|
||||
|
||||
$name = $path = $connection = $plugin = null;
|
||||
if (!empty($this->params['name'])) {
|
||||
$name = $this->params['name'];
|
||||
|
|
Loading…
Reference in a new issue