diff options
author | Jonathan Fritz <jonathan.fritz@mattermost.com> | 2018-02-12 16:14:52 -0500 |
---|---|---|
committer | Jonathan Fritz <jonathan.fritz@mattermost.com> | 2018-02-12 16:14:52 -0500 |
commit | 7b2861de3a09cf00d00b0872cc537d54302c4bfa (patch) | |
tree | e423083feb47bb45e17bc5619021a24025af0d6d /model/channel_member_history.go | |
parent | 62efb1df754bfe6b10a3c17ca6f89fd33b991f56 (diff) | |
download | chat-7b2861de3a09cf00d00b0872cc537d54302c4bfa.tar.gz chat-7b2861de3a09cf00d00b0872cc537d54302c4bfa.tar.bz2 chat-7b2861de3a09cf00d00b0872cc537d54302c4bfa.zip |
Removed unused fields from ChannelMemberHistory table, introduced new model.ChannelMemberHistoryResult object that includes those fields that are selected from a join on other tables
Diffstat (limited to 'model/channel_member_history.go')
-rw-r--r-- | model/channel_member_history.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/model/channel_member_history.go b/model/channel_member_history.go index 47c59d54e..55435c320 100644 --- a/model/channel_member_history.go +++ b/model/channel_member_history.go @@ -8,8 +8,4 @@ type ChannelMemberHistory struct { UserId string JoinTime int64 LeaveTime *int64 - - // these two fields are never set in the database - when we SELECT, we join on Users to get them - UserEmail string `db:"Email"` - Username string } |