Commit 23e542c2 authored by Ronan's avatar Ronan
Browse files

fix(MainDb): disable `participant message deleter` creation, problem with mysql

parent 8015fec5
......@@ -1267,6 +1267,8 @@ static inline string blobToString (soci::blob &in) {
") " + charset;
// Trigger to delete participant_message cache entries.
// TODO: Fix me in the future. (Problem on Mysql backend.)
#if 0
string displayedId = Utils::toString(static_cast<int>(ChatMessage::State::Displayed));
string participantMessageDeleter =
"CREATE TRIGGER IF NOT EXISTS chat_message_participant_deleter"
......@@ -1286,6 +1288,7 @@ static inline string blobToString (soci::blob &in) {
participantMessageDeleter += displayedId;
participantMessageDeleter += " WHERE event_id = NEW.event_id;"
" END";
#endif
*session << participantMessageDeleter;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment