diff --git a/src/Console/Commands/MakeMigration.php b/src/Console/Commands/MakeMigration.php index 2844f96c..d6df3d61 100644 --- a/src/Console/Commands/MakeMigration.php +++ b/src/Console/Commands/MakeMigration.php @@ -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 );