From f7de3a3e8f6b095966f86983f8d74d4d14a75be6 Mon Sep 17 00:00:00 2001 From: Limezy Date: Sun, 13 Nov 2022 14:49:51 +0700 Subject: [PATCH] Test --- scripts/upgrade | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e80393f..17654a0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -163,6 +163,16 @@ ynh_add_config --template="../conf/.env" --destination="$final_path/.env" chmod 600 "$final_path/.env" chown $app:$app "$final_path/.env" +#================================================= +# RUNNNING DB MIGRATIONS +#================================================= +ynh_script_progression --message="Running database migrations..." + +# Reset users table (after 2022.11.03) +# TODO : add a switch not to run the migration in other cases + +ynh_exec_warn_less "$final_path/live/photoprism" users reset --yes + #================================================= # SETUP SYSTEMD #=================================================