feat: use the --all-or-nothing flags for migrations

This commit is contained in:
Kévin Dunglas 2024-04-22 11:57:12 +02:00 committed by Maxime Helias
parent c7c788aca1
commit dc170d98eb

View File

@ -49,7 +49,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
fi
if [ "$( find ./migrations -iname '*.php' -print -quit )" ]; then
php bin/console doctrine:migrations:migrate --no-interaction
php bin/console doctrine:migrations:migrate --no-interaction --all-or-nothing
fi
fi