Permalink
Browse files

Disable the cache when running schema commands.

This prevents stale cached schema definitions from preventing updates.

Fixes #3690
  • Loading branch information...
markstory committed Mar 11, 2013
1 parent 0ba1aa6 commit f1da6b4cbc9f918a9a94147518db25908399a130
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/SchemaShell.php
@@ -53,6 +53,8 @@ public function startup() {
$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'];

0 comments on commit f1da6b4

Please sign in to comment.