From f1da6b4cbc9f918a9a94147518db25908399a130 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 11 Mar 2013 13:10:14 -0400 Subject: [PATCH] Disable the cache when running schema commands. This prevents stale cached schema definitions from preventing updates. Fixes #3690 --- lib/Cake/Console/Command/SchemaShell.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Console/Command/SchemaShell.php b/lib/Cake/Console/Command/SchemaShell.php index 473ae61a6..302b63eb0 100644 --- a/lib/Cake/Console/Command/SchemaShell.php +++ b/lib/Cake/Console/Command/SchemaShell.php @@ -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'];