adding connection param to schema shell

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6352 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-01-09 14:44:02 +00:00
parent 367d7a76fb
commit 74e77b7eab

View file

@ -69,8 +69,11 @@ class SchemaShell extends Shell {
if (!empty($this->params['file'])) {
$file = $this->params['file'];
}
$this->Schema =& new CakeSchema(compact('name', 'path', 'file'));
$connection = null;
if (!empty($this->params['connection'])) {
$connection = $this->params['connection'];
}
$this->Schema =& new CakeSchema(compact('name', 'path', 'file', 'connection'));
}
/**
* Override main