Add account_id column to logs table

When we search for duplicated stanza-ids we have to do it
in the context of an account
This commit is contained in:
Philipp Hörist 2017-11-17 21:27:56 +01:00
parent 52827c6add
commit 9759dcf152
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ def create_log_db():
CREATE TABLE logs(
log_line_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,
account_id INTEGER,
jid_id INTEGER,
contact_name TEXT,
time INTEGER,

View File

@ -1044,6 +1044,7 @@ class OptionsParser:
oldest_mam_timestamp TEXT,
last_muc_timestamp TEXT
);
ALTER TABLE logs ADD COLUMN 'account_id' INTEGER;
'''
)
con.commit()