Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into polkadot-v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Apr 4, 2024
2 parents 64b6a84 + d3a0f0c commit bafbf71
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 bafbf71

Please sign in to comment.