github.com/Finschia/finschia-sdk@v0.48.1/x/gov/keeper/migrations.go (about) 1 package keeper 2 3 import ( 4 sdk "github.com/Finschia/finschia-sdk/types" 5 ) 6 7 // Migrator is a struct for handling in-place store migrations. 8 type Migrator struct { 9 keeper Keeper 10 } 11 12 // NewMigrator returns a new Migrator. 13 func NewMigrator(keeper Keeper) Migrator { 14 return Migrator{keeper: keeper} 15 } 16 17 // Migrate1to2 migrates from version 1 to 2. 18 func (m Migrator) Migrate1to2(ctx sdk.Context) error { 19 return nil 20 }