Skip to content

Commit

Permalink
Remove old v7 migrations. (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium authored Dec 19, 2024
1 parent 12649df commit 413d977
Show file tree
Hide file tree
Showing 29 changed files with 24 additions and 2,163 deletions.
212 changes: 0 additions & 212 deletions pallets/asset/src/checkpoint/migrations.rs

This file was deleted.

8 changes: 1 addition & 7 deletions pallets/asset/src/checkpoint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
mod migrations;

use codec::{Decode, Encode};
use frame_support::{
Expand All @@ -66,9 +65,7 @@ use polymesh_common_utilities::{
GC_DID,
};
use polymesh_primitives::asset::AssetId;
use polymesh_primitives::{
asset::CheckpointId, storage_migrate_on, storage_migration_ver, IdentityId, Moment,
};
use polymesh_primitives::{asset::CheckpointId, storage_migration_ver, IdentityId, Moment};

use crate::Config;

Expand Down Expand Up @@ -170,9 +167,6 @@ decl_module! {
fn deposit_event() = default;

fn on_runtime_upgrade() -> Weight {
storage_migrate_on!(StorageVersion, 2, {
migrations::migrate_to_v2::<T>();
});
Weight::zero()
}

Expand Down
8 changes: 2 additions & 6 deletions pallets/compliance-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
mod migrations;

use codec::{Decode, Encode};
use core::result::Result;
Expand All @@ -95,8 +94,8 @@ use polymesh_primitives::compliance_manager::{
ConditionReport, ConditionResult, RequirementReport,
};
use polymesh_primitives::{
proposition, storage_migrate_on, storage_migration_ver, Claim, Condition, ConditionType,
Context, IdentityId, TargetIdentity, TrustedFor, TrustedIssuer, WeightMeter,
proposition, storage_migration_ver, Claim, Condition, ConditionType, Context, IdentityId,
TargetIdentity, TrustedFor, TrustedIssuer, WeightMeter,
};

type ExternalAgents<T> = pallet_external_agents::Module<T>;
Expand Down Expand Up @@ -144,9 +143,6 @@ decl_module! {
fn deposit_event() = default;

fn on_runtime_upgrade() -> Weight {
storage_migrate_on!(StorageVersion, 1, {
migrations::migrate_to_v1::<T>();
});
Weight::zero()
}

Expand Down
Loading

0 comments on commit 413d977

Please sign in to comment.