Documentation ¶
Index ¶
- func FixMissingNextReactionIDs(ctx sdk.Context, storeKey storetypes.StoreKey, pk types.PostsKeeper, ...) error
- func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, pk types.PostsKeeper, ...) error
- func RemoveDuplicatedReactions(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixMissingNextReactionIDs ¶
func FixMissingNextReactionIDs(ctx sdk.Context, storeKey storetypes.StoreKey, pk types.PostsKeeper, cdc codec.BinaryCodec) error
FixMissingNextReactionIDs fixes the missing next reaction ids for existing posts
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, pk types.PostsKeeper, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v2 to v3 It removes all the duplicated reactions and fix missing reaction ids.
func RemoveDuplicatedReactions ¶
func RemoveDuplicatedReactions(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
RemoveDuplicatedReactions removes all the duplicated reactions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.