fall back to a working (but not optimal) table creation until better is done. see #1844
This commit is contained in:
parent
b383a17cfd
commit
01f5effcef
|
@ -41,13 +41,17 @@ def assert_unread_msgs_table_exists():
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
cur.executescript(
|
cur.executescript(
|
||||||
'''
|
'''
|
||||||
CREATE TABLE IF NOT EXISTS unread_messages (
|
CREATE TABLE unread_messages (
|
||||||
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
|
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
|
||||||
);
|
);
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
con.commit()
|
try:
|
||||||
gajim.logger.init_vars() # FIXME: is this needed?
|
con.commit()
|
||||||
|
gajim.logger.init_vars() # FIXME: is this needed?
|
||||||
|
except sqlite.OperationalError, e:
|
||||||
|
pass
|
||||||
|
con.close()
|
||||||
|
|
||||||
def create_log_db():
|
def create_log_db():
|
||||||
print _('creating logs database')
|
print _('creating logs database')
|
||||||
|
|
Loading…
Reference in New Issue