From 767972f74226e7d6cb113e53683b6baacbb9ec1f Mon Sep 17 00:00:00 2001 From: tenzap Date: Sun, 15 Dec 2024 16:32:25 +0100 Subject: [PATCH] install: detect db schema of kalkun 0.8.3 And mark 0.8.0 schema as requiring to be updated by the installer --- application/controllers/Install.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/controllers/Install.php b/application/controllers/Install.php index fde097e6d..7cae9b65c 100644 --- a/application/controllers/Install.php +++ b/application/controllers/Install.php @@ -171,7 +171,13 @@ function database_setup() // ci_sessions table appeared in 0.8 if ($this->Kalkun_model->has_table_ci_sessions()) { - $detected_db_version = '0.8'; + $detected_db_version = '0.8.0'; + $data['type'] = 'upgrade'; + } + // plugins_table_has_status_column appeared in 0.8.3 + if ($this->Kalkun_model->plugins_table_has_status_column()) + { + $detected_db_version = '0.8.3'; $data['type'] = 'up_to_date'; }