Remove old unused migration method

This commit is contained in:
Philipp Hörist 2018-04-23 17:34:14 +02:00
parent 3efa731fbf
commit 86bfc81ad3
1 changed files with 0 additions and 25 deletions

View File

@ -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: