Corrects logic to only apply default filename in **all** cases where none provided.

This commit is contained in:
Brian Porter 2014-08-11 10:09:45 -05:00
parent 6358208e32
commit 543e520ccb

View file

@ -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) {