From 9e67b5ef5dba6cfb7188e7c05d08146556194a98 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 19 May 2021 20:52:56 +0200 Subject: [PATCH] Ensure that migrations are sorted properly --- app/Server/Factory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Server/Factory.php b/app/Server/Factory.php index 9f7e728..cb9d967 100644 --- a/app/Server/Factory.php +++ b/app/Server/Factory.php @@ -248,7 +248,8 @@ class Factory ->files() ->ignoreDotFiles(true) ->in(database_path('migrations')) - ->name('*.sql'); + ->name('*.sql') + ->sortByName(); /** @var SplFileInfo $migration */ foreach ($migrations as $migration) {