From 06dae877edcfbbb59c0019fdae4df6f196fa0aee Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Tue, 3 Jan 2023 22:08:27 +0100 Subject: [PATCH] Deploy scheduler agenda cleanup migration (#6465) * Add migration Signed-off-by: Oliver Tale-Yazdi * Add comments Signed-off-by: Oliver Tale-Yazdi * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi Signed-off-by: Oliver Tale-Yazdi --- polkadot/runtime/kusama/src/lib.rs | 4 ++++ polkadot/runtime/polkadot/src/lib.rs | 4 ++++ polkadot/runtime/rococo/src/lib.rs | 4 ++++ polkadot/runtime/westend/src/lib.rs | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index d0e92134fb..dce781b533 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -1480,6 +1480,9 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive, crowdloan::migration::MigrateToTrackInactive, @@ -1488,6 +1491,7 @@ pub type Migrations = ( Runtime, governance::FellowshipReferendaInstance, >, + pallet_scheduler::migration::v4::CleanupAgendas, ); /// Unchecked extrinsic type as expected by this runtime. diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 8c4d85afb6..4539318804 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -1597,9 +1597,13 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive, crowdloan::migration::MigrateToTrackInactive, + pallet_scheduler::migration::v4::CleanupAgendas, ); /// Unchecked extrinsic type as expected by this runtime. diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index bcf0a03c94..91a095cf23 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -1477,9 +1477,13 @@ pub type SignedExtra = ( pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive, crowdloan::migration::MigrateToTrackInactive, + pallet_scheduler::migration::v4::CleanupAgendas, ); /// Executive: handles dispatch to the various modules. diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 7118ad1e78..f1d99ebb8d 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -1211,9 +1211,13 @@ impl Get<&'static str> for StakingMigrationV11OldPallet { } } +/// All migrations that will run on the next runtime upgrade. +/// +/// Should be cleared after every release. pub type Migrations = ( pallet_balances::migration::MigrateToTrackInactive, crowdloan::migration::MigrateToTrackInactive, + pallet_scheduler::migration::v4::CleanupAgendas, ); /// Unchecked extrinsic type as expected by this runtime.