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 #=================================================