From ed06a9fc9766b562ad2e61bae5558cf12e0db646 Mon Sep 17 00:00:00 2001 From: Jyhem Date: Sat, 24 Jun 2023 00:57:17 +0200 Subject: [PATCH 1/3] [FIX] Update database on updates --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index c8f39f4..f8f9e88 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -65,6 +65,9 @@ fi chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +# Update database +exec_as_app console.php database:update + #================================================= # NGINX CONFIGURATION #================================================= From a561c794ec5dc4579bb33d7a38c2827e00c8fdc7 Mon Sep 17 00:00:00 2001 From: Jyhem Date: Sat, 24 Jun 2023 01:13:03 +0200 Subject: [PATCH 2/3] [FIX] Update database on updates 2 --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f8f9e88..3df9c7a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,7 +66,7 @@ chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" # Update database -exec_as_app console.php database:update +cd "$install_dir" && ynh_exec_as "$app" php${phpversion} --define apc.enable_cli=1 console.php database:update #================================================= # NGINX CONFIGURATION From 556b14884462c2dd863a9e927900f5d3a5197d27 Mon Sep 17 00:00:00 2001 From: Jyhem Date: Sat, 24 Jun 2023 01:26:52 +0200 Subject: [PATCH 3/3] [ENH] Add upgrade test from v1 --- tests.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests.toml b/tests.toml index d56c96c..f84c8fa 100644 --- a/tests.toml +++ b/tests.toml @@ -2,6 +2,8 @@ test_format = 1.0 [default] + test_upgrade_from.a0d6dbd5ab00f11afdc1e876394da01a0bbb3d3c.name = "24.2 packaging v1" + [regular] only = ["install.subdir"]