From 4d7802a2d2d17c20b31962e2a1d3505ed2bb2733 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 25 Jun 2024 14:18:11 +0200 Subject: [PATCH] added some debugging messages --- system/libraries/Migration.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index 201ff483a..a8d41e1cd 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -309,6 +309,7 @@ class CI_Migration { // Create the lockfile if (touch($this->_migration_lockfile)) { + log_message('debug', 'Created migration lockfile'); // Now just run the necessary migrations foreach ($pending as $number => $migration) @@ -329,10 +330,11 @@ class CI_Migration { $this->_update_version($current_version); } + log_message('debug', 'Finished migrating to '.$current_version); + // After the migrations we can remove the lockfile unlink($this->_migration_lockfile); - - log_message('debug', 'Finished migrating to '.$current_version); + log_message('debug', 'Deleted migration lockfile'); } else { log_message('error', 'Failed to create Migration Lockfile. Check directory permissions.');