From 0d308e2e2aa06fc0f8ad1b0ec4a7b68c3e1cab3f Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 6 Aug 2024 11:02:55 +0200 Subject: [PATCH] fix lock warning --- application/controllers/Debug.php | 4 +++- application/views/debug/index.php | 17 +++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 54115cb98..e9af0827a 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -42,9 +42,11 @@ class Debug extends CI_Controller // get mig version from config file $this->load->config('migration'); $data['migration_config'] = $this->config->item('migration_version'); + $data['migration_lockfile'] = $this->config->item('migration_lockfile'); + $data['miglock_lifetime'] = $this->config->item('migration_lf_maxage'); // compare mig versions - if ($data['migration_version'] !== $data['migration_config'] && file_exists('application/cache/.migration_running')) { + if ($data['migration_version'] != $data['migration_config'] && file_exists($data['migration_lockfile'])) { $data['migration_is_uptodate'] = false; } else { $data['migration_is_uptodate'] = true; diff --git a/application/views/debug/index.php b/application/views/debug/index.php index 22ec83cce..9e0642e2e 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -40,14 +40,15 @@ ". __("There is something wrong with your Migration in Database!") . ""); ?> - -
-
-

-


-

-
- +
+
+
+

+

here for more information."), "https://github.com/wavelog/wavelog/wiki/Migration-is-locked"); ?>

+


+

+
+