diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-12 16:23:20 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-12 16:23:20 +0300 |
commit | 59c6a809e3137b088062f244f2f114e150bedd5a (patch) | |
tree | be0a1644b9a65ad3ba8299769fcabba5a684809b /plugins/Dbx_sqlite/src | |
parent | ae5c72cf0e6e7b287d7cf77fb83cacd017ee2b58 (diff) |
merge commit
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbintf.cpp | 7 | ||||
-rw-r--r-- | plugins/Dbx_sqlite/src/stdafx.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 7d3d06a1a5..048fab793c 100644 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -29,7 +29,7 @@ CDbxSQLite::~CDbxSQLite() /////////////////////////////////////////////////////////////////////////////////////////
-#define CURRVER 7
+#define CURRVER 8
int CDbxSQLite::Create()
{
@@ -206,6 +206,11 @@ void CDbxSQLite::CheckConversion() logError(rc, __FILE__, __LINE__);
}
+ if (dbv.bVal < 8) {
+ int rc = sqlite3_exec(m_db, "UPDATE events SET flags = flags + 1024 WHERE type=1002;", 0, 0, 0);
+ logError(rc, __FILE__, __LINE__);
+ }
+
dbv.bVal = CURRVER;
WriteContactSetting(0, "Compatibility", "Sqlite", &dbv);
diff --git a/plugins/Dbx_sqlite/src/stdafx.h b/plugins/Dbx_sqlite/src/stdafx.h index e035993f8d..8661575039 100644 --- a/plugins/Dbx_sqlite/src/stdafx.h +++ b/plugins/Dbx_sqlite/src/stdafx.h @@ -11,6 +11,7 @@ #include <m_crypto.h> #include <m_database.h> #include <m_gui.h> +#include <m_json.h> #include <m_langpack.h> #include <m_netlib.h> #include <m_protocols.h> |