Fix DB migration for additional_data
This commit is contained in:
parent
2c4c610632
commit
9411ccd827
|
@ -73,7 +73,7 @@ def create_log_db():
|
|||
show INTEGER,
|
||||
message TEXT,
|
||||
subject TEXT,
|
||||
additional_data TEXT DEFAULT '{}',
|
||||
additional_data TEXT,
|
||||
stanza_id TEXT,
|
||||
encryption TEXT,
|
||||
encryption_state TEXT,
|
||||
|
|
|
@ -871,7 +871,7 @@ class OptionsParser:
|
|||
|
||||
self.call_sql(logger.LOG_DB_PATH,
|
||||
'''ALTER TABLE logs
|
||||
ADD COLUMN 'additinal_data' TEXT default '()';'''
|
||||
ADD COLUMN 'additional_data' TEXT;'''
|
||||
)
|
||||
app.config.set('version', '0.16.10.2')
|
||||
|
||||
|
@ -920,6 +920,7 @@ class OptionsParser:
|
|||
self.call_sql(logger.LOG_DB_PATH,
|
||||
'''
|
||||
ALTER TABLE logs ADD COLUMN 'account_id' INTEGER;
|
||||
ALTER TABLE logs ADD COLUMN 'additional_data' TEXT;
|
||||
'''
|
||||
)
|
||||
app.config.set('version', '0.98.2')
|
||||
|
|
Loading…
Reference in New Issue