Update morph dependency (#19308)
* Update morph dependency to use a newer version * remove timeout check for migrations statements * store/sqlstore: reset timeout for mysql while creating db for migrations * update morph to v0.2.1
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a55bd001b4
Коммит
f829dba615
4
vendor/github.com/go-morph/morph/README.md
сгенерированный
поставляемый
4
vendor/github.com/go-morph/morph/README.md
сгенерированный
поставляемый
@@ -16,6 +16,8 @@ It can be used as a library or a CLI tool.
|
||||
|
||||
```Go
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-morph/morph"
|
||||
"github.com/go-morph/morph/drivers/mysql"
|
||||
bindata "github.com/go-morph/morph/sources/go_bindata"
|
||||
@@ -37,7 +39,7 @@ if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
engine, err := morph.New(driver, src)
|
||||
engine, err := morph.New(context.Background(), driver, src)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user