Skip to content
Snippets Groups Projects
Commit 01f5effc authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fall back to a working (but not optimal) table creation until better is done. see #1844

parent b383a17c
No related branches found
No related tags found
No related merge requests found
......@@ -41,13 +41,17 @@ def assert_unread_msgs_table_exists():
cur = con.cursor()
cur.executescript(
'''
CREATE TABLE IF NOT EXISTS unread_messages (
CREATE TABLE unread_messages (
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
);
'''
)
con.commit()
gajim.logger.init_vars() # FIXME: is this needed?
try:
con.commit()
gajim.logger.init_vars() # FIXME: is this needed?
except sqlite.OperationalError, e:
pass
con.close()
def create_log_db():
print _('creating logs database')
......
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