Trait pallet_support::migration::StorageMigration
source · pub trait StorageMigration: OnRuntimeUpgrade {
// Provided method
fn migrate() -> Weight { ... }
}
Expand description
To run both pre- and post-checks around every migration, we entangle methods of
OnRuntimeUpgrade
into the desired flow and expose it with migrate
method.
This way, try-runtime
no longer triggers checks. We do it by hand.
Provided Methods§
Object Safety§
This trait is not object safe.