From d3a0f0cd02bf73157858b680d1cba080c66d3afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Enrique=20Mu=C3=B1oz=20Mart=C3=ADn?= Date: Thu, 4 Apr 2024 12:28:51 +0200 Subject: [PATCH] Set correct onchain versions (#1796) * set correct onchain versions * update versions for orderbook and foreign investmenrts --- runtime/altair/src/migrations.rs | 9 ++++++++- runtime/centrifuge/src/migrations.rs | 7 ++++++- .../common/src/migrations/increase_storage_version.rs | 3 ++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/runtime/altair/src/migrations.rs b/runtime/altair/src/migrations.rs index c4c6eceb93..39f34d3b93 100644 --- a/runtime/altair/src/migrations.rs +++ b/runtime/altair/src/migrations.rs @@ -10,6 +10,13 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. +use crate::{ForeignInvestments, OraclePriceCollection, OraclePriceFeed, OrderBook}; + /// The migration set for Altair @ Kusama. /// It includes all the migrations that have to be applied on that chain. -pub type UpgradeAltair1035 = (); +pub type UpgradeAltair1035 = ( + runtime_common::migrations::increase_storage_version::Migration, + runtime_common::migrations::increase_storage_version::Migration, + runtime_common::migrations::increase_storage_version::Migration, + runtime_common::migrations::increase_storage_version::Migration, +); diff --git a/runtime/centrifuge/src/migrations.rs b/runtime/centrifuge/src/migrations.rs index a3be22e77a..162fa93d4d 100644 --- a/runtime/centrifuge/src/migrations.rs +++ b/runtime/centrifuge/src/migrations.rs @@ -10,6 +10,11 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. +use crate::{OraclePriceCollection, OraclePriceFeed}; + /// The migration set for Centrifuge @ Polkadot. /// It includes all the migrations that have to be applied on that chain. -pub type UpgradeCentrifuge1029 = (); +pub type UpgradeCentrifuge1029 = ( + runtime_common::migrations::increase_storage_version::Migration, + runtime_common::migrations::increase_storage_version::Migration, +); diff --git a/runtime/common/src/migrations/increase_storage_version.rs b/runtime/common/src/migrations/increase_storage_version.rs index d8e6afba11..14e7899ebb 100644 --- a/runtime/common/src/migrations/increase_storage_version.rs +++ b/runtime/common/src/migrations/increase_storage_version.rs @@ -77,7 +77,8 @@ where } } -/// Simply bumps the storage version of a pallet +/// Simply bumps the storage version of a pallet. +/// Similar to the above but it does not check the current version is TO_VERSION /// /// NOTE: Use with extreme caution! Must ensure beforehand that a migration is /// not necessary