diff --git a/scripts/upgrade b/scripts/upgrade index 48ea078..92d87b1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,6 +56,9 @@ then ynh_script_progression --message="Data migration finished" ynh_script_progression --message="Data bucket was kept for safety, just in case !" ynh_script_progression --message="Don't forget to remove MinIO app if you don't use it !" + + db_name=$(ynh_sanitize_dbid --db_name=$app) + ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS uuid-ossp;" --database=$db_name else ynh_script_progression --message="No migration to be done" fi @@ -100,7 +103,7 @@ ynh_script_progression --message="Running DB initial migration..." pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn db:migrate + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn db:migrate popd #================================================= diff --git a/sources/patches/app-01-email.patch b/sources/patches/app-01-email.patch index 4d60e9a..2713e6f 100644 --- a/sources/patches/app-01-email.patch +++ b/sources/patches/app-01-email.patch @@ -1,8 +1,8 @@ diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx -index 4d4f6f09c..f457025d5 100644 +index f53e44b6b..bcf56efca 100644 --- a/server/emails/mailer.tsx +++ b/server/emails/mailer.tsx -@@ -208,6 +208,7 @@ export class Mailer { +@@ -207,6 +207,7 @@ export class Mailer { : { rejectUnauthorized: false, },