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

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
parent 52827c6a
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -1044,6 +1044,7 @@ class OptionsParser:
oldest_mam_timestamp TEXT,
last_muc_timestamp TEXT
);
ALTER TABLE logs ADD COLUMN 'account_id' INTEGER;
'''
)
con.commit()
......
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