Skip to content

Commit

Permalink
Set correct onchain versions (#1796)
Browse files Browse the repository at this point in the history
* set correct onchain versions

* update versions for orderbook and foreign investmenrts
  • Loading branch information
lemunozm authored Apr 4, 2024
1 parent 90490eb commit d3a0f0c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion runtime/altair/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OraclePriceFeed, 0, 1>,
runtime_common::migrations::increase_storage_version::Migration<OraclePriceCollection, 0, 1>,
runtime_common::migrations::increase_storage_version::Migration<OrderBook, 0, 1>,
runtime_common::migrations::increase_storage_version::Migration<ForeignInvestments, 0, 1>,
);
7 changes: 6 additions & 1 deletion runtime/centrifuge/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<OraclePriceFeed, 0, 1>,
runtime_common::migrations::increase_storage_version::Migration<OraclePriceCollection, 0, 1>,
);
3 changes: 2 additions & 1 deletion runtime/common/src/migrations/increase_storage_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3a0f0c

Please sign in to comment.