Check for for files in subdirectories of migrations/

This commit is contained in:
Michael Fitzpatrick 2022-03-06 22:29:31 +00:00 committed by Maxime Helias
parent fcff96b691
commit 8de8127aba

View File

@ -61,7 +61,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
echo "The db is now ready and reachable" echo "The db is now ready and reachable"
fi 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 bin/console doctrine:migrations:migrate --no-interaction
fi fi
fi fi