From 00f2edf6e0a7371039c54e283177360cb9327702 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Tue, 5 Oct 2021 12:57:42 -0600 Subject: [PATCH] Revert "Migrate from pallet version to storage version (#788)" (#882) This reverts commit d1e331b2790ac432595a2935e9b0a6dc4cc8249e. --- runtime/moonbase/src/lib.rs | 12 ------------ runtime/moonbeam/src/lib.rs | 12 ------------ runtime/moonriver/src/lib.rs | 12 ------------ 3 files changed, 36 deletions(-) diff --git a/runtime/moonbase/src/lib.rs b/runtime/moonbase/src/lib.rs index 6db18c2b12..bf1ede7fb8 100644 --- a/runtime/moonbase/src/lib.rs +++ b/runtime/moonbase/src/lib.rs @@ -1393,20 +1393,8 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - MigratePalletVersionToStorageVersion, >; -/// Migrate from `PalletVersion` to the new `StorageVersion` -pub struct MigratePalletVersionToStorageVersion; - -impl frame_support::traits::OnRuntimeUpgrade for MigratePalletVersionToStorageVersion { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - frame_support::migrations::migrate_from_pallet_version_to_storage_version::< - AllPalletsWithSystem, - >(&RocksDbWeight::get()) - } -} - // All of our runtimes share most of their Runtime API implementations. // We use a macro to implement this common part and add runtime-specific additional implementations. // This macro expands to : diff --git a/runtime/moonbeam/src/lib.rs b/runtime/moonbeam/src/lib.rs index 294e1b1fe0..ee8a256102 100644 --- a/runtime/moonbeam/src/lib.rs +++ b/runtime/moonbeam/src/lib.rs @@ -949,20 +949,8 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - MigratePalletVersionToStorageVersion, >; -/// Migrate from `PalletVersion` to the new `StorageVersion` -pub struct MigratePalletVersionToStorageVersion; - -impl frame_support::traits::OnRuntimeUpgrade for MigratePalletVersionToStorageVersion { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - frame_support::migrations::migrate_from_pallet_version_to_storage_version::< - AllPalletsWithSystem, - >(&RocksDbWeight::get()) - } -} - // All of our runtimes share most of their Runtime API implementations. // We use a macro to implement this common part and add runtime-specific additional implementations. // This macro expands to : diff --git a/runtime/moonriver/src/lib.rs b/runtime/moonriver/src/lib.rs index 4c8326f39d..8bd8bdce2b 100644 --- a/runtime/moonriver/src/lib.rs +++ b/runtime/moonriver/src/lib.rs @@ -938,20 +938,8 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - MigratePalletVersionToStorageVersion, >; -/// Migrate from `PalletVersion` to the new `StorageVersion` -pub struct MigratePalletVersionToStorageVersion; - -impl frame_support::traits::OnRuntimeUpgrade for MigratePalletVersionToStorageVersion { - fn on_runtime_upgrade() -> frame_support::weights::Weight { - frame_support::migrations::migrate_from_pallet_version_to_storage_version::< - AllPalletsWithSystem, - >(&RocksDbWeight::get()) - } -} - // All of our runtimes share most of their Runtime API implementations. // We use a macro to implement this common part and add runtime-specific additional implementations. // This macro expands to :