Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Backport .38 and .39 migrations to master #7186

Closed
wants to merge 17 commits into from
10 changes: 8 additions & 2 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,14 +1461,20 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations =
(migrations::V0940, migrations::V0941, migrations::V0942, migrations::Unreleased);
pub type Migrations = (
migrations::V0939,
migrations::V0940,
migrations::V0941,
migrations::V0942,
migrations::Unreleased,
);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
use super::*;

pub type V0939 = ();
pub type V0940 = (
pallet_nomination_pools::migration::v4::MigrateToV4<
Runtime,
Expand Down
19 changes: 17 additions & 2 deletions runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,14 +1437,29 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations =
(migrations::V0940, migrations::V0941, migrations::V0942, migrations::Unreleased);
pub type Migrations = (
migrations::V0938,
migrations::V0939,
migrations::V0940,
migrations::V0941,
migrations::V0942,
migrations::Unreleased,
);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
use super::*;

pub type V0938 = (
// "Use 2D weights in XCM v3" <https://github.com/paritytech/polkadot/pull/6134>
pallet_xcm::migration::v1::MigrateToV1<Runtime>,
parachains_ump::migration::v1::MigrateToV1<Runtime>,
// Remove stale entries in the set id -> session index storage map
// (after this release they will be properly pruned after the bonding duration has elapsed)
pallet_grandpa::migrations::CleanupSetIdSessionMap<Runtime>,
);
pub type V0939 = ();
pub type V0940 = (
pallet_nomination_pools::migration::v4::MigrateToV4<
Runtime,
Expand Down
19 changes: 1 addition & 18 deletions runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1213,28 +1213,11 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
///
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
pub type Migrations =
(migrations::V0940, migrations::V0941, migrations::V0942, migrations::Unreleased);
pub type Migrations = (migrations::Unreleased,);

/// The runtime migrations per release.
#[allow(deprecated, missing_docs)]
pub mod migrations {
use super::*;

pub type V0940 = (
clean_state_migration::CleanMigrate,
pallet_nomination_pools::migration::v4::MigrateToV4<
Runtime,
NominationPoolsMigrationV4OldPallet,
>,
pallet_nomination_pools::migration::v5::MigrateToV5<Runtime>,
);
pub type V0941 = (); // Node only release - no migrations.
pub type V0942 = (
parachains_configuration::migration::v5::MigrateToV5<Runtime>,
pallet_offences::migration::v1::MigrateToV1<Runtime>,
);

/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
}
Expand Down