referrerpolicy=no-referrer-when-downgrade

Function pallet_membership::migrations::v4::migrate

source ·
pub fn migrate<T: Config, P: GetStorageVersion + PalletInfoAccess, N: AsRef<str>>(
    old_pallet_name: N,
    new_pallet_name: N,
) -> Weight
Expand description

Migrate the entire storage of this pallet to a new prefix.

This new prefix must be the same as the one set in construct_runtime. For safety, use PalletInfo to get it, as: <Runtime as frame_system::Config>::PalletInfo::name::<MembershipPallet>.

The migration will look into the storage version in order not to trigger a migration on an up to date storage. Thus the on chain storage version must be less than 4 in order to trigger the migration.