summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbintf.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-09-27 22:37:02 +0300
committeraunsane <aunsane@gmail.com>2018-09-27 22:37:15 +0300
commit39fdc50b018c989f22c5392aca11da5fc5a482aa (patch)
tree65b69bbff2d95d8a407e38ae48f96901332b1592 /plugins/Dbx_sqlite/src/dbintf.cpp
parentcb3f9df94ba93527b8c589346b7b4482abad0fae (diff)
dbx_sqlite: correct event sorting
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbintf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index f99b6b8c0f..36fabaa76c 100644
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -46,7 +46,7 @@ int CDbxSQLite::Create(const wchar_t *profile)
sqlite3_exec(database, "create table contacts (id integer not null primary key);", nullptr, nullptr, nullptr);
sqlite3_exec(database, "create table events (id integer not null primary key, module varchar(255) not null, timestamp integer not null, type integer not null, flags integer not null, size integer not null, blob any, serverid varchar(64));", nullptr, nullptr, nullptr);
sqlite3_exec(database, "create index idx_events on events(module, serverid);", nullptr, nullptr, nullptr);
- sqlite3_exec(database, "create table contact_events (contactid integer not null, eventid integer not null, primary key(contactid, eventid)) without rowid;", nullptr, nullptr, nullptr);
+ sqlite3_exec(database, "create table contact_events (contactid integer not null, eventid integer not null, timestamp integer not null, primary key(contactid, eventid)) without rowid;", nullptr, nullptr, nullptr);
sqlite3_exec(database, "create table settings (contactid integer not null, module varchar(255) not null, setting varchar(255) not null, type integer not null, value any, primary key(contactid, module, setting)) without rowid;", nullptr, nullptr, nullptr);
sqlite3_exec(database, "create index idx_settings on settings(contactid, module, setting);", nullptr, nullptr, nullptr);
@@ -140,7 +140,7 @@ BOOL CDbxSQLite::Backup(const wchar_t *profile)
BOOL CDbxSQLite::IsRelational()
{
- return 0;
+ return TRUE;
}
void CDbxSQLite::SetCacheSafetyMode(BOOL)