Type Alias MigrateV4ToV5

Source
pub type MigrateV4ToV5<T> = VersionedMigration<4, 5, InnerMigrateV4ToV5<T>, Pallet<T>, <T as Config>::DbWeight>;
Expand description

[UncheckedOnRuntimeUpgrade] implementation InnerMigrateV4ToV5 wrapped in a VersionedMigration, which ensures that:

  • The migration only runs once when the on-chain storage version is 4
  • The on-chain storage version is updated to 5 after the migration executes
  • Reads/Writes from checking/settings the on-chain storage version are accounted for

Aliased Typeยง

struct MigrateV4ToV5<T> { /* private fields */ }