build(deps): Bump github.com/adlio/schema from 1.1.15 to 1.2.2 (#7421)

* 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>

* Update usage of Migrator API.

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:
dependabot[bot]
2021-12-10 12:48:02 -08:00
committed by GitHub
parent 6eeb1b3a5d
commit 6695e525f9
3 changed files with 23 additions and 16 deletions

View File

@@ -108,7 +108,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)
}