mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
Remove migrations that have been executed. (#986)
This commit is contained in:
@@ -602,16 +602,9 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
UniquesV1Migration,
|
(),
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct UniquesV1Migration;
|
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
|
||||||
fn on_runtime_upgrade() -> Weight {
|
|
||||||
pallet_uniques::migration::migrate_to_v1::<Runtime, _, Uniques>()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "runtime-benchmarks")]
|
#[cfg(feature = "runtime-benchmarks")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate frame_benchmarking;
|
extern crate frame_benchmarking;
|
||||||
|
|||||||
@@ -594,16 +594,9 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
UniquesV1Migration,
|
(),
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct UniquesV1Migration;
|
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
|
||||||
fn on_runtime_upgrade() -> Weight {
|
|
||||||
pallet_uniques::migration::migrate_to_v1::<Runtime, _, Uniques>()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "runtime-benchmarks")]
|
#[cfg(feature = "runtime-benchmarks")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate frame_benchmarking;
|
extern crate frame_benchmarking;
|
||||||
|
|||||||
Reference in New Issue
Block a user