diff --git a/gajim/common/optparser.py b/gajim/common/optparser.py index 38f0d5f4f..5d42c5acd 100644 --- a/gajim/common/optparser.py +++ b/gajim/common/optparser.py @@ -245,6 +245,8 @@ class OptionsParser: self.update_config_to_0982() if old < [0, 98, 3] and new >= [0, 98, 3]: self.update_config_to_0983() + if old < [0, 99, 2] and new >= [0, 99, 2]: + self.update_config_to_0992() app.logger.init_vars() app.logger.attach_cache_database() @@ -929,3 +931,12 @@ class OptionsParser: elif password == "libsecret:": app.config.set_per('accounts', account, 'password', '') app.config.set('version', '0.98.3') + + def update_config_to_0992(self): + self.call_sql(logger.LOG_DB_PATH, + ''' + CREATE INDEX IF NOT EXISTS + idx_logs_stanza_id ON logs (stanza_id); + ''' + ) + app.config.set('version', '0.99.2')