This commit is contained in:
parent
95d873faeb
commit
48c2f77a27
|
@ -89,8 +89,8 @@ func (c configurator) RegisterMigration(moduleName string, forVersion uint64, ha
|
|||
// runModuleMigrations runs all in-place store migrations for one given module from a
|
||||
// version to another version.
|
||||
func (c configurator) runModuleMigrations(ctx sdk.Context, moduleName string, fromVersion, toVersion uint64) error {
|
||||
// No-op if toVersion is the initial version.
|
||||
if toVersion <= 1 {
|
||||
// No-op if toVersion is the initial version or if the version is unchanged.
|
||||
if toVersion <= 1 || fromVersion == toVersion {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue