mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix[installer]: only delete the migration lockfile if it really exists
This commit is contained in:
@@ -348,8 +348,10 @@ class CI_Migration {
|
||||
log_message('debug', 'Finished migrating to '.$current_version);
|
||||
|
||||
// After the migrations we can remove the lockfile
|
||||
unlink($this->_migration_lockfile);
|
||||
log_message('debug', 'Deleted migration lockfile');
|
||||
if (file_exists($this->_migration_lockfile)) {
|
||||
unlink($this->_migration_lockfile);
|
||||
log_message('debug', 'Deleted migration lockfile');
|
||||
}
|
||||
|
||||
} else {
|
||||
log_message('error', 'Failed to create Migration Lockfile. Check directory permissions.');
|
||||
|
||||
Reference in New Issue
Block a user