Compare commits

...

2 Commits

Author SHA1 Message Date
545e5b39ac
Merge pull request 'ignore .gitkeep files in migrations folder' (!2) from fix-migration into master
All checks were successful
rvr-nextgen/pipeline/head This commit looks good
Reviewed-on: #2
2023-04-08 02:54:09 +02:00
67619926ca
ignore .gitkeep files in migrations folder
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
2023-04-08 02:31:22 +02:00

View File

@ -96,7 +96,7 @@ class MigrateDatabaseCommand extends Command
while ($file = readdir($dir)) { while ($file = readdir($dir)) {
$filePath = $path . '/' . $file; $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; continue;
} }