Skip to content

Commit

Permalink
add necessary storage migrations (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi authored Mar 6, 2024
1 parent 50fed3b commit 6bff158
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,19 +596,21 @@ pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
/// The payload being signed in transactions.
pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;

/// storage migrations to be applied upon runtime upgrade
pub type Migrations = (
pallet_grandpa::migrations::MigrateV4ToV5<Runtime>,
pallet_encointer_ceremonies::migrations::v2::MigrateToV2<Runtime>,
);

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Block,
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
// can migrate from v0 or v1 to v2
pallet_encointer_communities::migrations::v2::MigrateV0orV1toV2<Runtime>,
// expected to be noop. but need to try-runtime checks first!
pallet_encointer_ceremonies::migrations::v1::MigrateToV1<Runtime>,
),
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down

0 comments on commit 6bff158

Please sign in to comment.