mattermost / mattermost-plugin-legal-hold

Plugin to create and manage legal holds in Mattermost
Other
5 stars 2 forks source link

`ChannelMemberHistory` reference needs to be case sensitive #64

Open sadohert opened 1 month ago

sadohert commented 1 month ago

Testing the Legal Hold plugin on Mysql (Aurora on AWS).

Was getting this error when the job runs:

{"timestamp":"2024-06-14 13:26:49.084 Z","level":"error","msg":"invalid key/value pair","caller":"app/plugin_api.go:976","plugin_id":"com.mattermost.plugin-legal-hold","arg":"Error 1146 (42S02): Table 'sdohertydb.channelmemberhistory' doesn't exist"}

I think this line is where we are hardcoding to lower case, and where we need to fix this:

https://github.com/mattermost/mattermost-plugin-legal-hold/blob/06410e3b3276e8b258a3a9b7a41b5c659903c623/server/store/sqlstore/legal_hold.go#L116