Skip to content

Commit

Permalink
cleanup: storage migration (#2236)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is to remove extra migrations

Related to #2227 

# Discussion
- keeping the `MigrationPageIndex` storage around for future use.
Removing it requires another migration which is not justified currently.

# Checklist
- [x] Spec version incremented?
  • Loading branch information
aramikm authored Dec 10, 2024
1 parent 2e2cc3f commit 407b520
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 1,321 deletions.
2 changes: 0 additions & 2 deletions pallets/capacity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ mod benchmarking;
#[cfg(test)]
mod tests;

/// storage migrations
pub mod migration;
pub mod weights;
type BalanceOf<T> =
<<T as Config>::Currency as InspectFungible<<T as frame_system::Config>::AccountId>>::Balance;
Expand Down
4 changes: 0 additions & 4 deletions pallets/capacity/src/migration/mod.rs

This file was deleted.

49 changes: 0 additions & 49 deletions pallets/capacity/src/migration/provider_boost_init.rs

This file was deleted.

132 changes: 0 additions & 132 deletions pallets/capacity/src/migration/v4.rs

This file was deleted.

4 changes: 0 additions & 4 deletions pallets/messages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#[cfg(feature = "runtime-benchmarks")]
mod benchmarking;
/// migration module
pub mod migration;
#[cfg(test)]
mod tests;

Expand Down Expand Up @@ -55,8 +53,6 @@ pub use weights::*;
use cid::Cid;
use frame_system::pallet_prelude::*;

const LOG_TARGET: &str = "runtime::messages";

#[frame_support::pallet]
pub mod pallet {
use super::*;
Expand Down
2 changes: 0 additions & 2 deletions pallets/messages/src/migration/mod.rs

This file was deleted.

149 changes: 0 additions & 149 deletions pallets/messages/src/migration/v2.rs

This file was deleted.

Loading

0 comments on commit 407b520

Please sign in to comment.