From 67619926cac1064cad328ab0a832e3ce70774663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sat, 8 Apr 2023 02:31:22 +0200 Subject: [PATCH] ignore .gitkeep files in migrations folder --- src/Cli/MigrateDatabaseCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cli/MigrateDatabaseCommand.php b/src/Cli/MigrateDatabaseCommand.php index 9cd0597..90e85c8 100644 --- a/src/Cli/MigrateDatabaseCommand.php +++ b/src/Cli/MigrateDatabaseCommand.php @@ -96,7 +96,7 @@ class MigrateDatabaseCommand extends Command while ($file = readdir($dir)) { $filePath = $path . '/' . $file; - if (!is_file($filePath) || in_array(pathinfo($file, PATHINFO_FILENAME), $done)) { + if (!is_file($filePath) || pathinfo($file, PATHINFO_FILENAME) == '.gitkeep' || in_array(pathinfo($file, PATHINFO_FILENAME), $done)) { continue; } -- 2.45.2