frequency-chain / frequency

Frequency: A Polkadot Parachain
https://www.frequency.xyz
Apache License 2.0
48 stars 18 forks source link

[Bug]: Schema Names Migration Failure #2006

Closed wilwade closed 1 month ago

wilwade commented 1 month ago

What happened?

The migration pallets/schemas/src/migration/v3.rs did not apply correctly to mainnet.

This is because the feature flag frequency is not available to the schemas pallet.

Remediation:

  1. Remove the prior schema pallet migrations, as they have been applied to all networks.
  2. Add a new migration that does the following only on Mainnet:
    • [ ] Edits the dsnp.update to be schema id 5
    • [ ] Edits the dsnp.profile to be schema id 6
    • [ ] Adds dsnp.public-key-key-agreement as 7
    • [ ] Adds dsnp.public-follows as 8
    • [ ] Adds `dsnp.private-follows as 9
    • [ ] Adds `dsnp.private-connections as 10

Relevant log output

No response