mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 02:38:02 +00:00
Sort migrations by release (#7168)
* Sort migrations by release Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Inline 'SinceV0940' Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Mention order Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Extend comment Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix compile Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
8b91d909a3
commit
615366dba7
@@ -1460,20 +1460,32 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
|
||||
/// All migrations that will run on the next runtime upgrade.
|
||||
///
|
||||
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
|
||||
/// upgrades in case governance decides to do so.
|
||||
#[allow(deprecated)]
|
||||
pub type Migrations = (
|
||||
// 0.9.40
|
||||
pallet_nomination_pools::migration::v4::MigrateToV4<
|
||||
Runtime,
|
||||
NominationPoolsMigrationV4OldPallet,
|
||||
>,
|
||||
pallet_nomination_pools::migration::v5::MigrateToV5<Runtime>,
|
||||
// Unreleased - add new migrations here:
|
||||
parachains_configuration::migration::v5::MigrateToV5<Runtime>,
|
||||
pallet_offences::migration::v1::MigrateToV1<Runtime>,
|
||||
runtime_common::session::migration::ClearOldSessionStorage<Runtime>,
|
||||
);
|
||||
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
|
||||
pub type Migrations =
|
||||
(migrations::V0940, migrations::V0941, migrations::V0942, migrations::Unreleased);
|
||||
|
||||
/// The runtime migrations per release.
|
||||
#[allow(deprecated, missing_docs)]
|
||||
pub mod migrations {
|
||||
use super::*;
|
||||
|
||||
pub type V0940 = (
|
||||
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>,
|
||||
runtime_common::session::migration::ClearOldSessionStorage<Runtime>,
|
||||
);
|
||||
|
||||
/// Unreleased migrations. Add new ones here:
|
||||
pub type Unreleased = ();
|
||||
}
|
||||
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
|
||||
@@ -1435,20 +1435,33 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
|
||||
|
||||
/// All migrations that will run on the next runtime upgrade.
|
||||
///
|
||||
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime upgrades in case governance decides to do so.
|
||||
#[allow(deprecated)]
|
||||
pub type Migrations = (
|
||||
// 0.9.40
|
||||
pallet_nomination_pools::migration::v4::MigrateToV4<
|
||||
Runtime,
|
||||
NominationPoolsMigrationV4OldPallet,
|
||||
>,
|
||||
pallet_nomination_pools::migration::v5::MigrateToV5<Runtime>,
|
||||
// Unreleased - add new migrations here:
|
||||
parachains_configuration::migration::v5::MigrateToV5<Runtime>,
|
||||
pallet_offences::migration::v1::MigrateToV1<Runtime>,
|
||||
runtime_common::session::migration::ClearOldSessionStorage<Runtime>,
|
||||
);
|
||||
/// 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);
|
||||
|
||||
/// The runtime migrations per release.
|
||||
#[allow(deprecated, missing_docs)]
|
||||
pub mod migrations {
|
||||
use super::*;
|
||||
|
||||
pub type V0940 = (
|
||||
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>,
|
||||
runtime_common::session::migration::ClearOldSessionStorage<Runtime>,
|
||||
);
|
||||
|
||||
/// Unreleased migrations. Add new ones here:
|
||||
pub type Unreleased = ();
|
||||
}
|
||||
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
|
||||
@@ -1477,12 +1477,25 @@ pub type UncheckedExtrinsic =
|
||||
/// All migrations that will run on the next runtime upgrade.
|
||||
///
|
||||
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
|
||||
/// upgrades in case governance decides to do so.
|
||||
pub type Migrations = (
|
||||
// Unreleased - add new migrations here:
|
||||
parachains_configuration::migration::v5::MigrateToV5<Runtime>,
|
||||
pallet_offences::migration::v1::MigrateToV1<Runtime>,
|
||||
);
|
||||
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
|
||||
pub type Migrations =
|
||||
(migrations::V0940, migrations::V0941, migrations::V0942, migrations::Unreleased);
|
||||
|
||||
/// The runtime migrations per release.
|
||||
#[allow(deprecated, missing_docs)]
|
||||
pub mod migrations {
|
||||
use super::*;
|
||||
|
||||
pub type V0940 = ();
|
||||
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 = ();
|
||||
}
|
||||
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<
|
||||
|
||||
@@ -1212,20 +1212,32 @@ impl Get<Perbill> for NominationPoolsMigrationV4OldPallet {
|
||||
/// All migrations that will run on the next runtime upgrade.
|
||||
///
|
||||
/// This contains the combined migrations of the last 10 releases. It allows to skip runtime
|
||||
/// upgrades in case governance decides to do so.
|
||||
#[allow(deprecated)]
|
||||
pub type Migrations = (
|
||||
// 0.9.40
|
||||
clean_state_migration::CleanMigrate,
|
||||
pallet_nomination_pools::migration::v4::MigrateToV4<
|
||||
Runtime,
|
||||
NominationPoolsMigrationV4OldPallet,
|
||||
>,
|
||||
pallet_nomination_pools::migration::v5::MigrateToV5<Runtime>,
|
||||
// Unreleased - add new migrations here:
|
||||
parachains_configuration::migration::v5::MigrateToV5<Runtime>,
|
||||
pallet_offences::migration::v1::MigrateToV1<Runtime>,
|
||||
);
|
||||
/// upgrades in case governance decides to do so. THE ORDER IS IMPORTANT.
|
||||
pub type Migrations =
|
||||
(migrations::V0940, migrations::V0941, migrations::V0942, 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 = ();
|
||||
}
|
||||
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
|
||||
Reference in New Issue
Block a user