Skip to content

Commit

Permalink
Fixing the class name generation in MigrationShell::_getSchema()
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Jul 15, 2014
1 parent 117e958 commit bc4bbe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Console/Command/MigrationShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ protected function _getSchema($type = null) {
$name = Inflector::camelize($type) . 'Schema';

if ($type === 'app' && !class_exists($name)) {
$appDir = str_replace('-', '', APP_DIR);
$appDir = preg_replace('/[^a-zA-Z0-9]/', '', APP_DIR);
$name = Inflector::camelize($appDir) . 'Schema';
}

Expand Down

0 comments on commit bc4bbe6

Please sign in to comment.