From 08df526c027b06fbcb313ad360d70934f46b2679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Tue, 2 Jan 2024 07:57:46 +0100 Subject: [PATCH] Added schema to logging --- upgrader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrader.go b/upgrader.go index f06205d..d2ad6fd 100644 --- a/upgrader.go +++ b/upgrader.go @@ -155,7 +155,7 @@ func (upgrader Upgrader) Run() (err error) {// {{{ if err != nil { return } - upgrader.logCallback("version", fmt.Sprintf("%s: %d", dbName, version)) + upgrader.logCallback("version", fmt.Sprintf("%s.%s: %d", dbName, upgrader.schema, version)) for { version++ @@ -164,7 +164,7 @@ func (upgrader Upgrader) Run() (err error) {// {{{ break } - upgrader.logCallback("exec", fmt.Sprintf("%s: %d", dbName, version)) + upgrader.logCallback("exec", fmt.Sprintf("%s.%s: %d", dbName, upgrader.schema, version)) if _, err = dbase.db.Exec(string(sql)); err != nil { return }