diff --git a/substrate-node/runtime/src/lib.rs b/substrate-node/runtime/src/lib.rs index 4f8f6be3b..fdc145038 100644 --- a/substrate-node/runtime/src/lib.rs +++ b/substrate-node/runtime/src/lib.rs @@ -776,6 +776,7 @@ pub type Executive = frame_executive::Executive< type Migrations = ( pallet_tfgrid::migrations::v17::FixFarmPublicIps, pallet_tft_bridge::migrations::v2::MigrateBurnTransactionsV2, + migrations::update_storage_version::UpdateStorageVersion, ); // follows Substrate's non destructive way of eliminating otherwise required diff --git a/substrate-node/runtime/src/migrations/mod.rs b/substrate-node/runtime/src/migrations/mod.rs index 5344a1c6c..1aadb54b3 100644 --- a/substrate-node/runtime/src/migrations/mod.rs +++ b/substrate-node/runtime/src/migrations/mod.rs @@ -1,2 +1,3 @@ +pub mod remove_sudo; pub mod tfgrid_v15_smart_contract_v8; -pub mod remove_sudo; \ No newline at end of file +pub mod update_storage_version; diff --git a/substrate-node/runtime/src/migrations/update_storage_version.rs b/substrate-node/runtime/src/migrations/update_storage_version.rs new file mode 100644 index 000000000..3ee0114af --- /dev/null +++ b/substrate-node/runtime/src/migrations/update_storage_version.rs @@ -0,0 +1,10 @@ +pub struct UpdateStorageVersion; +impl frame_support::traits::OnRuntimeUpgrade for UpdateStorageVersion { + fn on_runtime_upgrade() -> frame_support::weights::Weight { + frame_support::pallet_prelude::StorageVersion::new(1).put::(); + frame_support::pallet_prelude::StorageVersion::new(4).put::(); + frame_support::pallet_prelude::StorageVersion::new(1).put::(); + + frame_support::weights::Weight::from_all(3) + } +}