From 3b090b15cdab5a67dfa7cf5a13f89c761c811d8e Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 5 Feb 2024 23:44:01 +0100 Subject: [PATCH] trying to fix the migration from weblate 4.X --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6dea564..6d65747 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -207,6 +207,11 @@ fi ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name +if [ "$current_version" -lt "5" ] +then + upgrade "5.0.2" "../conf/settings.py" +fi + upgrade $(ynh_app_upstream_version) "../conf/settings.py" # Set right permissions for curl installation