From 5bb1a2b3f0b3e7565cd68514f4db71e0ac060278 Mon Sep 17 00:00:00 2001 From: rbajollari Date: Fri, 19 Jul 2024 11:34:28 +0200 Subject: [PATCH] chore: v0.3.2 upgrade handler --- app/upgrades.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/upgrades.go b/app/upgrades.go index 6d7bcfc5..ea3a223d 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -45,6 +45,7 @@ func (app App) RegisterUpgradeHandlers() { app.registerUpgrade0_3_1Rc1(upgradeInfo) app.registerUpgrade0_3_1Rc2(upgradeInfo) app.registerUpgrade0_3_1(upgradeInfo) + app.registerUpgrade0_3_2(upgradeInfo) app.registerUpgrade0_4_0(upgradeInfo) } @@ -208,6 +209,18 @@ func (app *App) registerUpgrade0_3_1Rc2(_ upgradetypes.Plan) { func (app *App) registerUpgrade0_3_1(_ upgradetypes.Plan) { const planName = "v0.3.1" + app.UpgradeKeeper.SetUpgradeHandler(planName, + func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + sdkCtx := sdk.UnwrapSDKContext(ctx) + sdkCtx.Logger().Info("Upgrade handler execution", "name", planName) + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) +} + +func (app *App) registerUpgrade0_3_2(_ upgradetypes.Plan) { + const planName = "v0.3.2" + app.UpgradeKeeper.SetUpgradeHandler(planName, func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { sdkCtx := sdk.UnwrapSDKContext(ctx)