mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
367d7a76fb
commit
74e77b7eab
1 changed files with 5 additions and 2 deletions
|
@ -69,8 +69,11 @@ class SchemaShell extends Shell {
|
||||||
if (!empty($this->params['file'])) {
|
if (!empty($this->params['file'])) {
|
||||||
$file = $this->params['file'];
|
$file = $this->params['file'];
|
||||||
}
|
}
|
||||||
|
$connection = null;
|
||||||
$this->Schema =& new CakeSchema(compact('name', 'path', 'file'));
|
if (!empty($this->params['connection'])) {
|
||||||
|
$connection = $this->params['connection'];
|
||||||
|
}
|
||||||
|
$this->Schema =& new CakeSchema(compact('name', 'path', 'file', 'connection'));
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Override main
|
* Override main
|
||||||
|
|
Loading…
Add table
Reference in a new issue