Skip to content
Snippets Groups Projects
Commit 020d4754 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Add correct DB migration

Fixes #8806
parent 410aee7b
No related branches found
No related tags found
No related merge requests found
...@@ -247,6 +247,8 @@ class OptionsParser: ...@@ -247,6 +247,8 @@ class OptionsParser:
self.update_config_to_016111() self.update_config_to_016111()
if old < [0, 16, 11, 2] and new >= [0, 16, 11, 2]: if old < [0, 16, 11, 2] and new >= [0, 16, 11, 2]:
self.update_config_to_016112() self.update_config_to_016112()
if old < [0, 98, 2] and new >= [0, 98, 2]:
self.update_config_to_0982()
app.logger.init_vars() app.logger.init_vars()
app.logger.attach_cache_database() app.logger.attach_cache_database()
...@@ -913,3 +915,12 @@ class OptionsParser: ...@@ -913,3 +915,12 @@ class OptionsParser:
''' '''
) )
app.config.set('version', '0.16.11.2') app.config.set('version', '0.16.11.2')
def update_config_to_0982(self):
# This fixes a typo in update_config_to_016112()
self.call_sql(logger.LOG_DB_PATH,
'''
ALTER TABLE logs ADD COLUMN 'account_id' INTEGER;
'''
)
app.config.set('version', '0.98.2')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment