From a49fbdb05994adb8713b2ccbc6fd1d8c71c7071b Mon Sep 17 00:00:00 2001 From: Andrew Drake Date: Thu, 29 Jul 2021 15:14:59 +1000 Subject: [PATCH] Fixed issue with migration file names --- src/LaravelCrmServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelCrmServiceProvider.php b/src/LaravelCrmServiceProvider.php index 64c994e2..5aa1e20a 100644 --- a/src/LaravelCrmServiceProvider.php +++ b/src/LaravelCrmServiceProvider.php @@ -209,7 +209,7 @@ protected function routeConfiguration() */ protected function getMigrationFileName(Filesystem $filesystem, $filename, $order): string { - $timestamp = date('Y_m_d_Hi').(date('s') + $order); + $timestamp = date('Y_m_d_His', strtotime("+$order sec")); return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR) ->flatMap(function ($path) use ($filesystem, $filename) {