Skip to content

Commit

Permalink
change migration name format
Browse files Browse the repository at this point in the history
  • Loading branch information
robojuicedev committed Sep 22, 2017
1 parent d2bda4b commit 6745ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/MakeMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function exec()
$tags = ['{{name}}'];
$replacements = [ $name ];
$template = __DIR__ . '/../../../templates/Migration.txt';
$new = TR_PATH . '/sql/migrations/' . $name . "." . time() . ".sql";
$new = TR_PATH . '/sql/migrations/' . time() . '.' . $name . ".sql";

$file = new File( $template );
$new = $file->copyTemplateFile( $new, $tags, $replacements );
Expand Down

0 comments on commit 6745ef6

Please sign in to comment.