diff --git a/src/common/optparser.py b/src/common/optparser.py index f701e1545..7d381afe9 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -317,8 +317,8 @@ class OptionsParser: # apply indeces cur.executescript( ''' - CREATE INDEX IF NOT EXISTS idx_logs_jid_id_kind ON logs (jid_id, kind); - CREATE INDEX IF NOT EXISTS idx_unread_messages_jid_id ON unread_messages (jid_id); + CREATE INDEX idx_logs_jid_id_kind ON logs (jid_id, kind); + CREATE INDEX idx_unread_messages_jid_id ON unread_messages (jid_id); ''' )