pendulum icon indicating copy to clipboard operation
pendulum copied to clipboard

Define storage migrations required to upgrade from Polkadot 0.9.42 to 1.1.0

Open gianfra-t opened this issue 1 year ago • 1 comments

Context

As part of the overall task of updating to Polkadot 1.1.0 (see tasks/#306) we need to identify which migrations need to be defined manually and added to the runtime before performing the upgrade, such that the on-chain storage versions are updated as well.

Migrations that need to be specified manually are to be defined in the runtime here, where the migration function should be defined on the corresponding pallet.

Steps

We can start by using the general information found here regarding storage version management of the pallets. We should not have any discrepancy between the on-chain version and the version the code specifies at the moment.

Ideally, the process should be:

  • For each pallet:
    • Identify the current storage version.
    • Identify the version that polkadot-v1.1.0 uses.
    • Check if the pallet defines a migration automatically or needs to be specified manually.
    • If it doesn't specify automatically, identify which migration functions must be called (could be more than one)

The migration code should be added to the modifications done in this ticket

gianfra-t avatar May 29 '24 18:05 gianfra-t

Relevant notion page.

gianfra-t avatar Jul 26 '24 12:07 gianfra-t

Closing this as the definitions found here where used for the upgrade PR.

gianfra-t avatar Sep 20 '24 19:09 gianfra-t