Skip to content

Commit 98f80bd

Browse files
authored
Remove old migration (#349)
* Remove old migration * Remove migration_add_schedule_to_task benchmarking
1 parent 7d44984 commit 98f80bd

File tree

11 files changed

+3
-35
lines changed

11 files changed

+3
-35
lines changed

pallets/automation-time/src/benchmarking.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -558,34 +558,6 @@ benchmarks! {
558558
schedule_notify_tasks::<T>(caller.clone(), vec![new_time_slot], T::MaxTasksPerSlot::get());
559559
}: { AutomationTime::<T>::shift_missed_tasks(last_time_slot, diff) }
560560

561-
migration_add_schedule_to_task {
562-
let v in 1..100;
563-
564-
use migrations::add_schedule_to_task::{AccountTasks as OldAccountTasks, AddScheduleToTask, OldAction, OldTask};
565-
use frame_support::traits::OnRuntimeUpgrade;
566-
567-
for i in 0..v {
568-
let account_id: T::AccountId = account("Account", 0, i);
569-
let task_id = Pallet::<T>::generate_task_id(account_id.clone(), vec![0]);
570-
let task = OldTask::<T> {
571-
owner_id: account_id.clone(),
572-
provided_id: vec![1],
573-
execution_times: vec![10].try_into().unwrap(),
574-
executions_left: 1,
575-
action: OldAction::<T>::AutoCompoundDelegatedStake {
576-
delegator: account_id.clone(),
577-
collator: account_id.clone(),
578-
account_minimum: 100u32.into(),
579-
frequency: 11,
580-
},
581-
};
582-
OldAccountTasks::<T>::insert(account_id.clone(), task_id, task);
583-
}
584-
}: { AddScheduleToTask::<T>::on_runtime_upgrade() }
585-
verify {
586-
assert_eq!(v, crate::AccountTasks::<T>::iter().count() as u32);
587-
}
588-
589561
impl_benchmark_test_suite!(
590562
AutomationTime,
591563
crate::mock::new_test_ext(crate::tests::START_BLOCK_TIME),
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
// Migrations
22

33
// mod old;
4-
5-
pub mod add_schedule_to_task;

pallets/automation-time/src/migrations/old/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
// Excluded from the module tree to avoid warnings and errors on dead code
33

44
mod v4;
5+
mod add_schedule_to_task;
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
// Migrations
22

33
// mod old;
4-
5-
pub mod add_flow_to_currency_data;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/// Migrations that have already been run
22
pub mod add_mgx_tur_chain_currency_combo;
3+
pub mod add_flow_to_currency_data;

runtime/turing/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ pub type Executive = frame_executive::Executive<
137137
frame_system::ChainContext<Runtime>,
138138
Runtime,
139139
AllPalletsWithSystem,
140-
pallet_xcmp_handler::migrations::add_flow_to_currency_data::AddFlowToCurrencyData<Runtime>,
141140
>;
142141

143142
/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know

runtime/turing/src/migrations/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
// Runtime Migrations
22

33
// mod old;
4-
5-
pub mod register_shiden_asset;

runtime/turing/src/migrations/old/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
// Excluded from the module tree to avoid warnings and errors on dead code
33

44
mod assets;
5+
mod register_shiden_asset;

0 commit comments

Comments
 (0)