Disable the cache when running schema commands.

This prevents stale cached schema definitions from preventing updates.

Fixes #3690
This commit is contained in:
mark_story 2013-03-11 13:10:14 -04:00
parent 0ba1aa6d38
commit f1da6b4cbc

View file

@ -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'];