File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const (
4343 // dbVersion represents updates to the schema
4444 // version which are additions and compatible with
4545 // prior version of the same schema.
46- dbVersion = 2
46+ dbVersion = 3
4747)
4848
4949// DB represents a metadata database backed by a bolt
Original file line number Diff line number Diff line change @@ -265,6 +265,16 @@ func TestMigrations(t *testing.T) {
265265 return nil
266266 },
267267 },
268+
269+ {
270+ name : "NoOp" ,
271+ init : func (tx * bolt.Tx ) error {
272+ return nil
273+ },
274+ check : func (tx * bolt.Tx ) error {
275+ return nil
276+ },
277+ },
268278 }
269279
270280 if len (migrationTests ) != len (migrations ) {
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ var migrations = []migration{
4545 version : 2 ,
4646 migrate : migrateIngests ,
4747 },
48+ {
49+ schema : "v1" ,
50+ version : 3 ,
51+ migrate : noOpMigration ,
52+ },
4853}
4954
5055// addChildLinks Adds children key to the snapshotters to enforce snapshot
@@ -154,3 +159,10 @@ func migrateIngests(tx *bolt.Tx) error {
154159
155160 return nil
156161}
162+
163+ // noOpMigration was for a database change from boltdb/bolt which is no
164+ // longer being supported, to go.etcd.io/bbolt which is the currently
165+ // maintained repo for boltdb.
166+ func noOpMigration (tx * bolt.Tx ) error {
167+ return nil
168+ }
You can’t perform that action at this time.
0 commit comments