From 331c1868483fbf29701c3b9258f1ee016799560e Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 6 Mar 2024 14:50:02 +0100 Subject: [PATCH] add necessary storage migrations --- runtime/src/lib.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 755256a8..97c4cc8a 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -596,6 +596,13 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; + +/// storage migrations to be applied upon runtime upgrade +pub type Migrations = ( + pallet_grandpa::migrations::MigrateV4ToV5, + pallet_encointer_ceremonies::migrations::v2::MigrateToV2, +); + /// Executive: handles dispatch to the various modules. pub type Executive = frame_executive::Executive< Runtime, @@ -603,12 +610,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - ( - // can migrate from v0 or v1 to v2 - pallet_encointer_communities::migrations::v2::MigrateV0orV1toV2, - // expected to be noop. but need to try-runtime checks first! - pallet_encointer_ceremonies::migrations::v1::MigrateToV1, - ), + Migrations, >; #[cfg(feature = "runtime-benchmarks")]