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
|
// runModuleMigrations runs all in-place store migrations for one given module from a
|
||||||
// version to another version.
|
// version to another version.
|
||||||
func (c configurator) runModuleMigrations(ctx sdk.Context, moduleName string, fromVersion, toVersion uint64) error {
|
func (c configurator) runModuleMigrations(ctx sdk.Context, moduleName string, fromVersion, toVersion uint64) error {
|
||||||
// No-op if toVersion is the initial version.
|
// No-op if toVersion is the initial version or if the version is unchanged.
|
||||||
if toVersion <= 1 {
|
if toVersion <= 1 || fromVersion == toVersion {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue