Added schema to logging

This commit is contained in:
Magnus Åhall 2024-01-02 07:57:46 +01:00
parent 95335125d3
commit 08df526c02

View File

@ -155,7 +155,7 @@ func (upgrader Upgrader) Run() (err error) {// {{{
if err != nil { if err != nil {
return return
} }
upgrader.logCallback("version", fmt.Sprintf("%s: %d", dbName, version)) upgrader.logCallback("version", fmt.Sprintf("%s.%s: %d", dbName, upgrader.schema, version))
for { for {
version++ version++
@ -164,7 +164,7 @@ func (upgrader Upgrader) Run() (err error) {// {{{
break 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 { if _, err = dbase.db.Exec(string(sql)); err != nil {
return return
} }