log applied migrations

This commit is contained in:
Andrew Dolgov 2021-03-04 11:33:25 +03:00
parent 8f8ca49e4b
commit 31b29e0a56
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ class Db_Migrations {
$this->pdo->commit();
Debug::log("Migration finished, current version: " . $this->get_version(), Debug::LOG_VERBOSE);
Logger::log(E_USER_NOTICE, "Applied migration to version $version for {$this->migrations_table}");
} else {
Debug::log("Migration failed: schema file is empty or missing.", Debug::LOG_VERBOSE);
}