Module frame_support::migrations
source · Structs§
- Enter safe mode on a failed runtime upgrade.
- Do now allow any transactions to be processed after a runtime upgrade failed.
- A generic migration identifier that can be used by MBMs.
RemovePallet
is a utility struct used to remove all storage items associated with a specific pallet.RemoveStorage
is a utility struct used to remove a storage item from a specific pallet.- Handles storage migration pallet versioning.
Enums§
- How to proceed after a runtime upgrade failed.
- Error that can occur during a
SteppedMigration
. - A helper enum to wrap the pre_upgrade bytes like an Option before passing them to post_upgrade. This enum is used rather than an Option to make the API clearer to the developer.
Traits§
- Handles a failed runtime migration.
- Notification handler for status updates regarding Multi-Block-Migrations.
- Something that can do multi step migrations.
- Trait used by
migrate_from_pallet_version_to_storage_version
to do the actual migration. - A migration that can proceed in multiple steps.
- Multiple
SteppedMigration
. - Can store the in-code pallet version on-chain.
Functions§
- Migrate from the
PalletVersion
struct to the newStorageVersion
struct.