From 543e520ccb7f5ff3009f0da58e38f4467c8137b5 Mon Sep 17 00:00:00 2001 From: Brian Porter Date: Mon, 11 Aug 2014 10:09:45 -0500 Subject: [PATCH] Corrects logic to only apply default filename in **all** cases where none provided. --- lib/Cake/Console/Command/SchemaShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/SchemaShell.php b/lib/Cake/Console/Command/SchemaShell.php index 49fc79b23..94dfc4619 100644 --- a/lib/Cake/Console/Command/SchemaShell.php +++ b/lib/Cake/Console/Command/SchemaShell.php @@ -68,7 +68,7 @@ class SchemaShell extends AppShell { } if ($name && empty($this->params['file'])) { $this->params['file'] = Inflector::underscore($name); - } else { + } elseif(empty($this->params['file'])) { $this->params['file'] = 'schema.php'; } if (strpos($this->params['file'], '.php') === false) {