pallet-uniques: Move migration over to VersionedMigration (#2687)

This commit is contained in:
Bastian Köcher authored and GitHub committed 2023-12-12 13:37:52 +02:00
1 parent 2aaa9af374
commit ef62acfbcf
2 files changed
+49 -30

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
title: "pallet-uniques: Move migration over to `VersionedMigration`"
doc:
- audience: Runtime Dev
description: |
Moves the migration over to `VersionedMigration`. Thus, if you had
used `migrate_to_v1` before in a custom `OnRuntimeUpgrade` implementation
you can now directly use the `MigrateV0ToV1`.
migrations:
runtime:
- reference: MigrateV0ToV1
description: |
Migrate the pallet storage from `0` to `1` by initializing
the `CollectionAccount` storage entry from all collections.
crates:
- name: "pallet-uniques"