mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 22:31:03 +00:00
Improve VersionedMigration naming conventions (#2264)
As suggested by @ggwpez (https://github.com/paritytech/polkadot-sdk/pull/2142#discussion_r1388145872), remove the `VersionChecked` prefix from version checked migrations (but leave `VersionUnchecked` prefixes) --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -95,14 +95,13 @@ impl<
|
||||
|
||||
/// [`VersionUncheckedMigrateToV2`] wrapped in a [`frame_support::migrations::VersionedMigration`],
|
||||
/// ensuring the migration is only performed when on-chain version is 0.
|
||||
pub type VersionCheckedMigrateToV2<T, I, PastPayouts> =
|
||||
frame_support::migrations::VersionedMigration<
|
||||
0,
|
||||
2,
|
||||
VersionUncheckedMigrateToV2<T, I, PastPayouts>,
|
||||
crate::pallet::Pallet<T, I>,
|
||||
<T as frame_system::Config>::DbWeight,
|
||||
>;
|
||||
pub type MigrateToV2<T, I, PastPayouts> = frame_support::migrations::VersionedMigration<
|
||||
0,
|
||||
2,
|
||||
VersionUncheckedMigrateToV2<T, I, PastPayouts>,
|
||||
crate::pallet::Pallet<T, I>,
|
||||
<T as frame_system::Config>::DbWeight,
|
||||
>;
|
||||
|
||||
pub(crate) mod old {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user