pallet_domains/migrations/
v1_to_v5.rs1use crate::{Config, Pallet};
4use core::marker::PhantomData;
5use frame_support::migrations::VersionedMigration;
6use frame_support::traits::UncheckedOnRuntimeUpgrade;
7use frame_support::weights::Weight;
8
9pub type VersionCheckedMigrateDomainsV1ToV5<T> = VersionedMigration<
10 1,
11 5,
12 VersionUncheckedMigrateV1ToV5<T>,
13 Pallet<T>,
14 <T as frame_system::Config>::DbWeight,
15>;
16
17pub struct VersionUncheckedMigrateV1ToV5<T>(PhantomData<T>);
18impl<T: Config> UncheckedOnRuntimeUpgrade for VersionUncheckedMigrateV1ToV5<T> {
19 fn on_runtime_upgrade() -> Weight {
20 Weight::zero()
21 }
22}