check for new migrations
dockers/pixelfed/pipeline/head This commit looks good Details

This commit is contained in:
chris 2023-01-09 20:36:09 +01:00
parent a385f624f9
commit 6111fd726c
1 changed files with 1 additions and 0 deletions

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