Skip to content

Commit 15f42e1

Browse files
committed
bump storage versions
1 parent 3574ed0 commit 15f42e1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

substrate-node/runtime/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ pub type Executive = frame_executive::Executive<
776776
type Migrations = (
777777
pallet_tfgrid::migrations::v17::FixFarmPublicIps<Runtime>,
778778
pallet_tft_bridge::migrations::v2::MigrateBurnTransactionsV2<Runtime>,
779+
migrations::update_storage_version::UpdateStorageVersion,
779780
);
780781

781782
// follows Substrate's non destructive way of eliminating otherwise required
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pub mod remove_sudo;
12
pub mod tfgrid_v15_smart_contract_v8;
2-
pub mod remove_sudo;
3+
pub mod update_storage_version;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pub struct UpdateStorageVersion;
2+
impl frame_support::traits::OnRuntimeUpgrade for UpdateStorageVersion {
3+
fn on_runtime_upgrade() -> frame_support::weights::Weight {
4+
frame_support::pallet_prelude::StorageVersion::new(1).put::<crate::Balances>();
5+
frame_support::pallet_prelude::StorageVersion::new(4).put::<crate::Scheduler>();
6+
frame_support::pallet_prelude::StorageVersion::new(1).put::<crate::Historical>();
7+
8+
frame_support::weights::Weight::from_all(3)
9+
}
10+
}

0 commit comments

Comments
 (0)