Commit 07b33a41 authored by Ronan's avatar Ronan

fix(MainDb): add braces!!

parent 1f8f7652
......@@ -1695,7 +1695,7 @@ void MainDb::init () {
" version INT UNSIGNED NOT NULL"
") " + charset;
if (getBackend() == Backend::Mysql)
if (getBackend() == Backend::Mysql) {
*session <<
"DROP TRIGGER IF EXISTS chat_message_participant_deleter";
*session <<
......@@ -1706,7 +1706,7 @@ void MainDb::init () {
" DELETE FROM chat_message_participant WHERE event_id = NEW.event_id;"
" END IF;"
" END ";
else
} else
*session <<
"CREATE TRIGGER IF NOT EXISTS chat_message_participant_deleter"
" AFTER UPDATE OF state ON conference_chat_message_event FOR EACH ROW"
......
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