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

remove old code (when we modified unread_message table structure)

parent b3eba176
No related branches found
No related tags found
No related merge requests found
......@@ -238,25 +238,8 @@ class Logger:
self.cur.execute(
'SELECT message_id from unread_messages WHERE jid_id = %d' % jid_id)
results = self.cur.fetchall()
# Remove before 0.10
except:
try:
self.cur.executescript('DROP TABLE unread_messages;')
self.con.commit()
except:
pass
try:
self.cur.executescript('''CREATE TABLE unread_messages(
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,
jid_id INTEGER
);''')
self.con.commit()
except:
pass
self.con.close()
self.jids_already_in = []
self.init_vars()
return []
pass
for message in results:
msg_id = message[0]
......
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