From 8de8127aba915545588fd16c13a0cff3706ee18d Mon Sep 17 00:00:00 2001 From: Michael Fitzpatrick Date: Sun, 6 Mar 2022 22:29:31 +0000 Subject: [PATCH] Check for for files in subdirectories of migrations/ --- docker/php/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/php/docker-entrypoint.sh b/docker/php/docker-entrypoint.sh index 717ff45..3afa941 100755 --- a/docker/php/docker-entrypoint.sh +++ b/docker/php/docker-entrypoint.sh @@ -61,7 +61,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then echo "The db is now ready and reachable" fi - if ls -A migrations/*.php >/dev/null 2>&1; then + if [ "$( find ./migrations -iname '*.php' -print -quit )" ]; then bin/console doctrine:migrations:migrate --no-interaction fi fi