feat(RM-40): MessageID & ChannelID as nullable#2
Open
DanPlayz0 wants to merge 1 commit intoTicketsBot-cloud:masterfrom
Open
feat(RM-40): MessageID & ChannelID as nullable#2DanPlayz0 wants to merge 1 commit intoTicketsBot-cloud:masterfrom
DanPlayz0 wants to merge 1 commit intoTicketsBot-cloud:masterfrom
Conversation
e113c43 to
07fb486
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces changes to the
panels.gofile, primarily to allowmessage_idandchannel_idfields to be nullable, improving flexibility in handling panel data. Key updates include modifying the schema, struct definitions, and related methods to support nullable values.Schema and struct updates:
message_idandchannel_idfields in thePanelstruct to be pointers (*uint64) to allow null values. (panels.goL14-R15)panelstable to makemessage_idandchannel_idnullable by setting their default toNULL. (panels.goL59-R60)Method updates:
UpdateMessageIdto accept a pointer (*uint64) formessage_idto handle nullable values. (panels.goL601-R601)UpdateChannelIdto update thechannel_idfield, also supporting nullable values. (panels.goR612-R622)Migration:
Notes
This PR was originally created in May, and was later updated; original changes can be found by comparing commits 17762cd7d39ae3c02a4746978cff5021a749f80b & e113c4330d33cc2cc885a240c0dd4427e052eb29