Added schema to logging
This commit is contained in:
parent
95335125d3
commit
08df526c02
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user