fix install.sh
: database migrations did not run
This commit is contained in:
parent
0bab40b248
commit
644ab3e424
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue