diff --git a/lib/Cake/Console/Command/SchemaShell.php b/lib/Cake/Console/Command/SchemaShell.php index ff52a2d4b4f..a1f9dbf2421 100644 --- a/lib/Cake/Console/Command/SchemaShell.php +++ b/lib/Cake/Console/Command/SchemaShell.php @@ -282,7 +282,11 @@ protected function _loadSchema() { $this->out(__d('cake_console', 'Performing a dry run.')); } - $options = array('name' => $name, 'plugin' => $plugin); + $options = array( + 'name' => $name, + 'plugin' => $plugin, + 'connection' => $this->params['connection'], + ); if (!empty($this->params['snapshot'])) { $fileName = rtrim($this->Schema->file, '.php'); $options['file'] = $fileName . '_' . $this->params['snapshot'] . '.php';