added some debugging messages

This commit is contained in:
HB9HIL
2024-06-25 14:18:11 +02:00
parent 063fb3de96
commit 4d7802a2d2

View File

@@ -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.');