mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
build(deps): Bump github.com/adlio/schema from 1.1.15 to 1.2.2 (#7423)
* build(deps): Bump github.com/adlio/schema from 1.1.15 to 1.2.2 Bumps [github.com/adlio/schema](https://github.com/adlio/schema) from 1.1.15 to 1.2.2. - [Release notes](https://github.com/adlio/schema/releases) - [Commits](https://github.com/adlio/schema/compare/v1.1.15...v1.2.2) --- updated-dependencies: - dependency-name: github.com/adlio/schema dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Work around API changes in the migrator package. A recent update inadvertently broke the API by changing the receiver types of the methods without updating the constructor. See: https://github.com/adlio/schema/issues/13 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
M. J. Fromberger
parent
a925f4fa84
commit
f8bf2cb912
@@ -180,7 +180,8 @@ func setupDB(t *testing.T) (*dockertest.Pool, error) {
|
||||
sm, err := readSchema()
|
||||
assert.Nil(t, err)
|
||||
|
||||
err = schema.NewMigrator().Apply(psqldb, sm)
|
||||
migrator := schema.NewMigrator()
|
||||
err = migrator.Apply(psqldb, sm)
|
||||
assert.Nil(t, err)
|
||||
|
||||
return pool, nil
|
||||
|
||||
@@ -110,7 +110,9 @@ func TestMain(m *testing.M) {
|
||||
sm, err := readSchema()
|
||||
if err != nil {
|
||||
log.Fatalf("Reading schema: %v", err)
|
||||
} else if err := schema.NewMigrator().Apply(db, sm); err != nil {
|
||||
}
|
||||
migrator := schema.NewMigrator()
|
||||
if err := migrator.Apply(db, sm); err != nil {
|
||||
log.Fatalf("Applying schema: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user