Skip to content

Commit d3a0f0c

Browse files
authored
Set correct onchain versions (#1796)
* set correct onchain versions * update versions for orderbook and foreign investmenrts
1 parent 90490eb commit d3a0f0c

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

runtime/altair/src/migrations.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
// GNU General Public License for more details.
1212

13+
use crate::{ForeignInvestments, OraclePriceCollection, OraclePriceFeed, OrderBook};
14+
1315
/// The migration set for Altair @ Kusama.
1416
/// It includes all the migrations that have to be applied on that chain.
15-
pub type UpgradeAltair1035 = ();
17+
pub type UpgradeAltair1035 = (
18+
runtime_common::migrations::increase_storage_version::Migration<OraclePriceFeed, 0, 1>,
19+
runtime_common::migrations::increase_storage_version::Migration<OraclePriceCollection, 0, 1>,
20+
runtime_common::migrations::increase_storage_version::Migration<OrderBook, 0, 1>,
21+
runtime_common::migrations::increase_storage_version::Migration<ForeignInvestments, 0, 1>,
22+
);

runtime/centrifuge/src/migrations.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1111
// GNU General Public License for more details.
1212

13+
use crate::{OraclePriceCollection, OraclePriceFeed};
14+
1315
/// The migration set for Centrifuge @ Polkadot.
1416
/// It includes all the migrations that have to be applied on that chain.
15-
pub type UpgradeCentrifuge1029 = ();
17+
pub type UpgradeCentrifuge1029 = (
18+
runtime_common::migrations::increase_storage_version::Migration<OraclePriceFeed, 0, 1>,
19+
runtime_common::migrations::increase_storage_version::Migration<OraclePriceCollection, 0, 1>,
20+
);

runtime/common/src/migrations/increase_storage_version.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ where
7777
}
7878
}
7979

80-
/// Simply bumps the storage version of a pallet
80+
/// Simply bumps the storage version of a pallet.
81+
/// Similar to the above but it does not check the current version is TO_VERSION
8182
///
8283
/// NOTE: Use with extreme caution! Must ensure beforehand that a migration is
8384
/// not necessary

0 commit comments

Comments
 (0)