Function pallet_bounties::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 storage of the bounties pallet to a new prefix, leaving all other storage untouched
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::<BountiesPallet>
.
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.