From 31b29e0a56ef6581c5e209c062eee6b3a72a17fe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Mar 2021 11:33:25 +0300 Subject: [PATCH] log applied migrations --- classes/db/migrations.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/db/migrations.php b/classes/db/migrations.php index 4bd72bd09..3008af535 100644 --- a/classes/db/migrations.php +++ b/classes/db/migrations.php @@ -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); }