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

Commit

Permalink
add pallet_im_online::migration to Unreleased migrations (#7387)
Browse files Browse the repository at this point in the history
* add pallet_im_online::migration to Unreleased migrations

refs #7309 (comment)

* ".git/.scripts/commands/fmt/fmt.sh"

---------

Co-authored-by: command-bot <>
  • Loading branch information
melekes authored Jun 25, 2023
1 parent 75a1bf4 commit ee49329
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
6 changes: 4 additions & 2 deletions runtime/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,8 +1532,10 @@ pub mod migrations {
);

/// Unreleased migrations. Add new ones here:
pub type Unreleased =
(pallet_society::migrations::MigrateToV2<Runtime, (), past_payouts::PastPayouts>,);
pub type Unreleased = (
pallet_society::migrations::MigrateToV2<Runtime, (), past_payouts::PastPayouts>,
pallet_im_online::migration::v1::Migration<Runtime>,
);

/// Migrations that set `StorageVersion`s we missed to set.
pub struct SetStorageVersions;
Expand Down
10 changes: 2 additions & 8 deletions runtime/parachains/src/configuration/migration_ump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,12 @@ pub mod latest {
"There must be exactly one new pending upgrade enqueued"
);
if let Err(err) = last.1.check_consistency() {
log::error!(
target: LOG_TARGET,
"Last PendingConfig is invalidity {:?}", err,
);
log::error!(target: LOG_TARGET, "Last PendingConfig is invalidity {:?}", err,);

return Err("Pending upgrade must be sane but was not".into())
}
if let Err(err) = ActiveConfig::<T>::get().check_consistency() {
log::error!(
target: LOG_TARGET,
"ActiveConfig is invalid: {:?}", err,
);
log::error!(target: LOG_TARGET, "ActiveConfig is invalid: {:?}", err,);

return Err("Active upgrade must be sane but was not".into())
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ pub mod migrations {
);

/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);

/// Migrations that set `StorageVersion`s we missed to set.
pub struct SetStorageVersions;
Expand Down
5 changes: 4 additions & 1 deletion runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,10 @@ pub mod migrations {
}

/// Unreleased migrations. Add new ones here:
pub type Unreleased = (pallet_society::migrations::MigrateToV2<Runtime, (), ()>,);
pub type Unreleased = (
pallet_society::migrations::MigrateToV2<Runtime, (), ()>,
pallet_im_online::migration::v1::Migration<Runtime>,
);
}

/// Helpers to configure all migrations.
Expand Down
2 changes: 1 addition & 1 deletion runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ pub mod migrations {
}

/// Unreleased migrations. Add new ones here:
pub type Unreleased = ();
pub type Unreleased = (pallet_im_online::migration::v1::Migration<Runtime>,);
}

/// Helpers to configure all migrations.
Expand Down

0 comments on commit ee49329

Please sign in to comment.