diff --git a/scripts/upgrade b/scripts/upgrade index 90b424c..d1df4cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -73,6 +73,11 @@ if [ -z "$version" ]; then ynh_app_setting_set --app=$app --key=version --value=$version fi +if [ -z "$db_name" ]; then + db_name="$app" + ynh_app_setting_set --app=$app --key=db_name --value=$db_name +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================