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

This commit is contained in:
Yann Leboulanger 2006-04-11 07:29:43 +00:00
parent b383a17cfd
commit 01f5effcef
1 changed files with 7 additions and 3 deletions

View File

@ -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')