Skip to content

Commit

Permalink
Merge pull request #33 from bretterer/migration-fix
Browse files Browse the repository at this point in the history
Fix to setDownMethod in the switch to have default in correct place
  • Loading branch information
JeffreyWay committed Mar 25, 2013
2 parents 4ae4e50 + b92288c commit 97efdea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/GenerateMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ protected function setDownMethod()

case 'create':
case 'make':
default:
// then we need to drop the table in reverse
$downMethod = \File::get(__DIR__ . '/../stubs/migrationDownDrop.php');
$fields = $this->option('fields') ? $this->setFields('dropColumn') : '';
default:
break;
}

$downMethod = $this->replaceTableNameInTemplate($downMethod);
Expand Down

0 comments on commit 97efdea

Please sign in to comment.