Skip to content

Commit 8de8127

Browse files
qooplmaomaxhelias
authored andcommitted
Check for for files in subdirectories of migrations/
1 parent fcff96b commit 8de8127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/php/docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
6161
echo "The db is now ready and reachable"
6262
fi
6363

64-
if ls -A migrations/*.php >/dev/null 2>&1; then
64+
if [ "$( find ./migrations -iname '*.php' -print -quit )" ]; then
6565
bin/console doctrine:migrations:migrate --no-interaction
6666
fi
6767
fi

0 commit comments

Comments
 (0)