@@ -1625,53 +1625,14 @@ pub type Executive = frame_executive::Executive<
1625
1625
/// Once done, migrations should be removed from the tuple.
1626
1626
pub type Migrations = (
1627
1627
cumulus_pallet_xcmp_queue:: migration:: v4:: MigrationToV4 < Runtime > ,
1628
- GovernancePalletsVersionSetting ,
1629
1628
// permanent migration, do not remove
1630
1629
pallet_xcm:: migration:: MigrateToLatestXcmVersion < Runtime > ,
1631
1630
// XCM V3 -> V4
1632
1631
pallet_xc_asset_config:: migrations:: versioned:: V2ToV3 < Runtime > ,
1633
1632
pallet_identity:: migration:: versioned:: V0ToV1 < Runtime , 250 > ,
1633
+ pallet_unified_accounts:: migration:: ClearCorruptedUnifiedMappings < Runtime > ,
1634
1634
) ;
1635
1635
1636
- use frame_support:: traits:: { GetStorageVersion , OnRuntimeUpgrade } ;
1637
- pub struct GovernancePalletsVersionSetting ;
1638
- impl OnRuntimeUpgrade for GovernancePalletsVersionSetting {
1639
- fn on_runtime_upgrade ( ) -> Weight {
1640
- // 1. Membership pallet instances
1641
- let membership_storage_version = pallet_membership:: Pallet :: <
1642
- Runtime ,
1643
- MainCouncilMembershipInst ,
1644
- > :: in_code_storage_version ( ) ;
1645
-
1646
- membership_storage_version
1647
- . put :: < pallet_membership:: Pallet < Runtime , MainCouncilMembershipInst > > ( ) ;
1648
- membership_storage_version
1649
- . put :: < pallet_membership:: Pallet < Runtime , TechnicalCommitteeCollectiveInst > > ( ) ;
1650
- membership_storage_version
1651
- . put :: < pallet_membership:: Pallet < Runtime , CommunityCouncilMembershipInst > > ( ) ;
1652
-
1653
- // 2. Collective pallet instances
1654
- let collective_storage_version = pallet_collective:: Pallet :: <
1655
- Runtime ,
1656
- MainCouncilCollectiveInst ,
1657
- > :: in_code_storage_version ( ) ;
1658
-
1659
- collective_storage_version
1660
- . put :: < pallet_collective:: Pallet < Runtime , MainCouncilCollectiveInst > > ( ) ;
1661
- collective_storage_version
1662
- . put :: < pallet_collective:: Pallet < Runtime , TechnicalCommitteeCollectiveInst > > ( ) ;
1663
- collective_storage_version
1664
- . put :: < pallet_collective:: Pallet < Runtime , CommunityCouncilCollectiveInst > > ( ) ;
1665
-
1666
- // 3. Democracy pallet
1667
- let democracy_storage_version =
1668
- pallet_democracy:: Pallet :: < Runtime > :: in_code_storage_version ( ) ;
1669
- democracy_storage_version. put :: < pallet_democracy:: Pallet < Runtime > > ( ) ;
1670
-
1671
- <Runtime as frame_system:: Config >:: DbWeight :: get ( ) . writes ( 7 )
1672
- }
1673
- }
1674
-
1675
1636
type EventRecord = frame_system:: EventRecord <
1676
1637
<Runtime as frame_system:: Config >:: RuntimeEvent ,
1677
1638
<Runtime as frame_system:: Config >:: Hash ,
0 commit comments