Commit 86bfc81a authored by Philipp Hörist's avatar Philipp Hörist

Remove old unused migration method

parent 3efa731f
......@@ -173,31 +173,6 @@ class OptionsParser:
caps_cache.capscache.initialize_from_db()
@staticmethod
def assert_unread_msgs_table_exists():
"""
Create table unread_messages if there is no such table
"""
back = os.getcwd()
os.chdir(logger.LOG_DB_FOLDER)
con = sqlite.connect(logger.LOG_DB_FILE)
os.chdir(back)
cur = con.cursor()
try:
cur.executescript(
'''
CREATE TABLE IF NOT EXISTS unread_messages (
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,
jid_id INTEGER
);
'''
)
con.commit()
app.logger.init_vars()
except sqlite.OperationalError:
pass
con.close()
@staticmethod
def update_ft_proxies(to_remove=None, to_add=None):
if to_remove is None:
......
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