mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
Rename VersionedRuntimeUpgrade to VersionedMigration (#1187)
* rename VersionedRuntimeUpgrade to VersionedMigration * doc lint * rename test filename --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -34,7 +34,7 @@ sp-io = { path = "../../primitives/io" }
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
# Enable `VersionedRuntimeUpgrade` for the migrations that is currently still experimental.
|
||||
# Enable `VersionedMigration` for migrations using this feature.
|
||||
experimental = [ "frame-support/experimental" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
|
||||
@@ -93,12 +93,11 @@ impl<
|
||||
}
|
||||
}
|
||||
|
||||
/// [`VersionUncheckedMigrateToV2`] wrapped in a
|
||||
/// [`frame_support::migrations::VersionedRuntimeUpgrade`], ensuring the migration is only performed
|
||||
/// when on-chain version is 0.
|
||||
/// [`VersionUncheckedMigrateToV2`] wrapped in a [`frame_support::migrations::VersionedMigration`],
|
||||
/// ensuring the migration is only performed when on-chain version is 0.
|
||||
#[cfg(feature = "experimental")]
|
||||
pub type VersionCheckedMigrateToV2<T, I, PastPayouts> =
|
||||
frame_support::migrations::VersionedRuntimeUpgrade<
|
||||
frame_support::migrations::VersionedMigration<
|
||||
0,
|
||||
2,
|
||||
VersionUncheckedMigrateToV2<T, I, PastPayouts>,
|
||||
|
||||
Reference in New Issue
Block a user