Browse Source

Add boolean 'sent_ok' to new history DBs

We can remember which message we couldn't send and build faux-offline messaging on top of that later
pull/678/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
93a4d30724
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/historykeeper.cpp

2
src/historykeeper.cpp

@ -37,7 +37,7 @@ HistoryKeeper *HistoryKeeper::getInstance() @@ -37,7 +37,7 @@ HistoryKeeper *HistoryKeeper::getInstance()
{
QList<QString> initLst;
initLst.push_back(QString("CREATE TABLE IF NOT EXISTS history (id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp INTEGER NOT NULL, ") +
QString("chat_id INTEGER NOT NULL, sender INTEGER NOT NULL, message TEXT NOT NULL);"));
QString("chat_id INTEGER NOT NULL, sender INTEGER NOT NULL, message TEXT NOT NULL, sent_ok BOOLEAN NOT NULL );"));
initLst.push_back(QString("CREATE TABLE IF NOT EXISTS aliases (id INTEGER PRIMARY KEY AUTOINCREMENT, user_id TEXT UNIQUE NOT NULL);"));
initLst.push_back(QString("CREATE TABLE IF NOT EXISTS chats (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE NOT NULL, ctype INTEGER NOT NULL);"));

Loading…
Cancel
Save