From 74e77b7eab7516ba293472fb839d71c1a5e64f7a Mon Sep 17 00:00:00 2001 From: gwoo Date: Wed, 9 Jan 2008 14:44:02 +0000 Subject: [PATCH] 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 --- cake/console/libs/schema.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index b9a18829a..bc3afb00e 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -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