check for new migrations
All checks were successful
dockers/pixelfed/pipeline/head This commit looks good

This commit is contained in:
chris 2023-01-09 20:36:09 +01:00
parent a385f624f9
commit 6111fd726c

View file

@ -29,6 +29,7 @@ gosu www-data php artisan view:cache
echo "++++ Check for needed migrations... ++++"
# check for migrations
gosu www-data php artisan migrate:status | grep No && migrations=yes || migrations=no
gosu www-data php artisan migrate:status | grep Pending && migrations=yes || migrations=no
if [ $migrations = "yes" ];
then
gosu www-data php artisan migrate --force