temp disable assert_um_exists
This commit is contained in:
parent
94b194966f
commit
5c3b2ff2e8
|
@ -37,17 +37,7 @@ from pysqlite2 import dbapi2 as sqlite # DO NOT MOVE ABOVE OF import gajim
|
||||||
|
|
||||||
def assert_um_exists():
|
def assert_um_exists():
|
||||||
''' create table unread_messages if there is no such table '''
|
''' create table unread_messages if there is no such table '''
|
||||||
con = sqlite.connect(logger.LOG_DB_PATH)
|
pass
|
||||||
os.chmod(logger.LOG_DB_PATH, 0600) # rw only for us
|
|
||||||
cur = con.cursor()
|
|
||||||
cur.executescript(
|
|
||||||
'''
|
|
||||||
CREATE TABLE IF NOT EXISTS unread_messages (
|
|
||||||
message_id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE
|
|
||||||
);
|
|
||||||
'''
|
|
||||||
)
|
|
||||||
con.commit()
|
|
||||||
|
|
||||||
def create_log_db():
|
def create_log_db():
|
||||||
print _('creating logs database')
|
print _('creating logs database')
|
||||||
|
|
Loading…
Reference in New Issue