Commit 7c31b0c7 authored by echel0n's avatar echel0n

Fixed issue for missing database indexes.

parent 3f20cdd0
# Changelog
- * 9ca02ed - 2018-11-10: Refactored misc errors to warnings.
- * 62c1ce5 - 2018-11-10: Fixed issue for missing database indexes.
- * 3f20cdd - 2018-11-10: Refactored misc errors to warnings.
- * 4127ed3 - 2018-11-10: Refactored misc errors to warnings.
- * 78c64b1 - 2018-11-10: Release v9.4.26
- * 9e4dc5f - 2018-11-10: Fixed issue with file browser and clicking on files not properly choosing file and closing browser dialog.
......
......@@ -234,6 +234,8 @@ class srDatabase(object):
except Exception as e:
if index_name in self.db.indexes_names:
self.db.destroy_index(self.db.indexes_names[index_name])
self.db.add_index(self._indexes[index_name](self.db.path, index_name))
#self.db.reindex_index(index_name)
def migrate(self):
if os.path.isfile(self.old_db_path):
......
......@@ -3928,6 +3928,9 @@ class ConfigBackupRestore(Config):
return finalResult
def saveBackupRestore(self, **kwargs):
return self.redirect("/config/backuprestore/")
@Route('/config/search(/?.*)')
class ConfigSearch(Config):
......
<%inherit file="../layouts/config.mako"/>
<%def name='formaction()'><% return 'backuprestore' %></%def>
<%def name='formaction()'><% return 'saveBackupRestore' %></%def>
<%block name="menus">
<li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#backup">${_('Backup')}</a></li>
<li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#restore">${_('Restore')}</a></li>
......
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