Skip to content

Commit ea5050a

Browse files
committed
Updated migrations
1 parent 53362a2 commit ea5050a

File tree

1 file changed

+32
-13
lines changed
  • runtimes/bulletin-polkadot-parachain/src

1 file changed

+32
-13
lines changed

runtimes/bulletin-polkadot-parachain/src/lib.rs

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -259,19 +259,38 @@ pub type TxExtension = cumulus_pallet_weight_reclaim::StorageWeightReclaim<
259259
pub type UncheckedExtrinsic =
260260
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
261261

262-
/// Migrations to apply on runtime upgrade.
263-
pub type Migrations = (
264-
pallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
265-
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
266-
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
267-
pallet_session::migrations::v1::MigrateV0ToV1<
268-
Runtime,
269-
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
270-
>,
271-
// permanent
272-
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
273-
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
274-
);
262+
/// The runtime migrations per release.
263+
#[allow(deprecated, missing_docs)]
264+
pub mod migrations {
265+
use super::*;
266+
267+
/// Unreleased migrations. Add new ones here:
268+
pub type Unreleased = (
269+
pallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
270+
cumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
271+
cumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
272+
pallet_session::migrations::v1::MigrateV0ToV1<
273+
Runtime,
274+
pallet_session::migrations::v1::InitOffenceSeverity<Runtime>,
275+
>,
276+
cumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
277+
);
278+
279+
/// Migrations/checks that do not need to be versioned and can run on every update.
280+
pub type Permanent = (
281+
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
282+
pallet_transaction_storage::migrations::SetRetentionPeriodIfZero<
283+
Runtime,
284+
pallet_transaction_storage::DefaultRetentionPeriod,
285+
>,
286+
);
287+
288+
/// All single block migrations that will run on the next runtime upgrade.
289+
pub type SingleBlockMigrations = (Unreleased, Permanent);
290+
291+
/// MBM migrations to apply on runtime upgrade.
292+
pub type MbmMigrations = ();
293+
}
275294

276295
/// Executive: handles dispatch to the various modules.
277296
#[allow(deprecated)]

0 commit comments

Comments
 (0)