Skip to content

Commit

Permalink
style(be): rename go-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 23, 2022
1 parent 7737567 commit caf47c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/bolt/migration.go
Expand Up @@ -9,7 +9,7 @@ import (

func (d *BoltDb) IsMigrationApplied(migration db.Migration) (bool, error) {
err := d.db.View(func(tx *bbolt.Tx) error {
b := tx.Bucket([]byte("versions"))
b := tx.Bucket([]byte("migrations"))
if b == nil {
return db.ErrNotFound
}
Expand Down Expand Up @@ -45,7 +45,7 @@ func (d *BoltDb) ApplyMigration(migration db.Migration) (err error) {
}

return d.db.Update(func(tx *bbolt.Tx) error {
b, err := tx.CreateBucketIfNotExists([]byte("versions"))
b, err := tx.CreateBucketIfNotExists([]byte("migrations"))

if err != nil {
return err
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit caf47c2

Please sign in to comment.