diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 62d9e7d49..54115cb98 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -36,8 +36,20 @@ class Debug extends CI_Controller $data['calls_wo_sid'] = $this->Debug_model->calls_without_station_id(); } + // get mig version from database $data['migration_version'] = $this->Debug_model->getMigrationVersion(); + // get mig version from config file + $this->load->config('migration'); + $data['migration_config'] = $this->config->item('migration_version'); + + // compare mig versions + if ($data['migration_version'] !== $data['migration_config'] && file_exists('application/cache/.migration_running')) { + $data['migration_is_uptodate'] = false; + } else { + $data['migration_is_uptodate'] = true; + } + // Test writing to backup folder $backup_folder = $this->permissions->is_really_writable('backup'); $data['backup_folder'] = $backup_folder; diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 7b46f50da..22ec83cce 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -39,6 +39,16 @@ ". __("There is something wrong with your Migration in Database!") . ""); ?> + + +
+
+

+


+

+
+ +