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 {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user