From 644ab3e424bcae7ea48b61fa2dbe80a80ed0e137 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Thu, 25 Jul 2024 11:18:09 +0200 Subject: [PATCH] fix `install.sh`: database migrations did not run --- scripts/commands/extensions/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commands/extensions/install.sh b/scripts/commands/extensions/install.sh index 39da642..966ff58 100644 --- a/scripts/commands/extensions/install.sh +++ b/scripts/commands/extensions/install.sh @@ -410,6 +410,7 @@ InstallExtension() { if [[ $database_migrations != "" ]]; then PRINT INFO "Cloning database migration files.." cp -R ".blueprint/tmp/$n/$database_migrations/"* "database/migrations/" 2>> "$BLUEPRINT__DEBUG" + dbmigrations="true" fi # Place views directory. @@ -1299,7 +1300,7 @@ Command() { -o -exec chown "$OWNERSHIP" {} + &>> "$BLUEPRINT__DEBUG" # Database migrations - if [[ ( $database_migrations != "" ) && ( $DOCKER != "y" ) ]] || [[ $DeveloperForcedMigrate == "true" ]]; then + if [[ ( $db_migrations == "true" ) && ( $DOCKER != "y" ) ]] || [[ $DeveloperForcedMigrate == "true" ]]; then if [[ ( $YN == "y"* ) || ( $YN == "Y"* ) || ( $YN == "" ) ]] || [[ $DeveloperForcedMigrate == "true" ]]; then PRINT INFO "Running database migrations.." php artisan migrate --force