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:
Liam Aharon
2023-08-30 14:28:03 +10:00
committed by GitHub
parent b4ee6f2aa9
commit 2f49252bcd
8 changed files with 31 additions and 32 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ xcm-builder = { path = "../xcm-builder" }
[features]
default = [ "std" ]
# Enable `VersionedRuntimeUpgrade` for the migrations that is currently still experimental.
# Enable `VersionedMigration` for the migrations using the experimental feature.
experimental = [ "frame-support/experimental" ]
std = [
"bounded-collections/std",
+3 -3
View File
@@ -63,10 +63,10 @@ pub mod v1 {
/// Version checked migration to v1.
///
/// Wrapped in VersionedRuntimeUpgrade so the pre/post checks don't begin failing after the
/// upgrade is enacted on-chain.
/// Wrapped in [`frame_support::migrations::VersionedMigration`] so the pre/post checks don't
/// begin failing after the upgrade is enacted on-chain.
#[cfg(feature = "experimental")]
pub type VersionCheckedMigrateToV1<T> = frame_support::migrations::VersionedRuntimeUpgrade<
pub type VersionCheckedMigrateToV1<T> = frame_support::migrations::VersionedMigration<
0,
1,
VersionUncheckedMigrateToV1<T>,