Skip to content

Commit

Permalink
install: detect db schema of kalkun 0.8.3
Browse files Browse the repository at this point in the history
And mark 0.8.0 schema as requiring to be updated by the installer
  • Loading branch information
tenzap committed Dec 15, 2024
1 parent 81cbdf1 commit 767972f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/controllers/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 767972f

Please sign in to comment.