Skip to content

Commit

Permalink
Fix migration:pivot CeateFoo_BarUploadPivotTable to CreateFooBarUploa…
Browse files Browse the repository at this point in the history
…dPivotTable
  • Loading branch information
bpocallaghan committed May 5, 2017
1 parent b2cefe4 commit 2676f71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/MigrationPivotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ protected function parseName($name)
{
$tables = array_map('str_singular', $this->getSortedTableNames());
$name = implode('', array_map('ucwords', $tables));
$pieces = explode('_', $name);
$name = implode('', array_map('ucwords', $pieces));

return "Create{$name}PivotTable";
}
Expand Down

0 comments on commit 2676f71

Please sign in to comment.