From 9a2ac89c04cd414e97e934452c8a188e7df0a093 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Mar 2022 14:20:35 +0200 Subject: [PATCH 1/3] Update .env --- conf/.env | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/.env b/conf/.env index f2cde49..30fddcd 100644 --- a/conf/.env +++ b/conf/.env @@ -20,6 +20,7 @@ GENERIC_TIMEZONE=__TIMEZONE__ N8N_PROTOCOL=http N8N_LISTEN_ADDRESS=127.0.0.1 +DB_TYPE=mysqldb DB_MYSQLDB_DATABASE=__DB_NAME__ DB_MYSQLDB_HOST_FILE=localhost DB_MYSQLDB_PORT_FILE=3306 From 1abe7ec7efb93cc823e9c8b2cc0d9856a0564b79 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Mar 2022 14:50:58 +0200 Subject: [PATCH 2/3] Update .env --- conf/.env | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/.env b/conf/.env index 30fddcd..964eacb 100644 --- a/conf/.env +++ b/conf/.env @@ -22,10 +22,10 @@ N8N_LISTEN_ADDRESS=127.0.0.1 DB_TYPE=mysqldb DB_MYSQLDB_DATABASE=__DB_NAME__ -DB_MYSQLDB_HOST_FILE=localhost -DB_MYSQLDB_PORT_FILE=3306 -DB_MYSQLDB_USER_FILE=__DB_USER__ -DB_MYSQLDB_PASSWORD_FILE=__DB_PWD__ +DB_MYSQLDB_HOST="localhost" +DB_MYSQLDB_PORT=3306 +DB_MYSQLDB_USER=__DB_USER__ +DB_MYSQLDB_PASSWORD=__DB_PWD__ EXECUTIONS_DATA_SAVE_ON_ERROR=all EXECUTIONS_DATA_SAVE_ON_SUCCESS=none From 33335b14718e89b6218db3b1df2c8e2e26350426 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 31 Mar 2022 13:59:31 +0200 Subject: [PATCH 3/3] Block upgrade when migrating sqlite to mariadb --- scripts/upgrade | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index fe3a8bf..036673e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -65,6 +65,17 @@ ynh_script_progression --message="Making sure dedicated system user exists..." - # Create a dedicated user (if not existing) ynh_system_user_create --username=$app --home_dir="$final_path" +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= + +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 + +if ynh_compare_current_package_version --comparison le --version 0.169.0~ynh1 +then + ynh_die --message="Upgrade from version 0.169.0~ynh1 is not possible is not possible yet because data migration is not supported. Please let us know you encounter this message in this issue: https://github.com/YunoHost-Apps/n8n_ynh/issues/18" +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================