From 9f0f64236819b9cc26e4517b1ad1e273c669b394 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Dec 2023 15:27:12 +0300 Subject: Dbx_Sqlite: fix for profile creation --- plugins/Dbx_sqlite/src/dbintf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Dbx_sqlite') diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 41b9a37383..dc872f64c7 100644 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -29,6 +29,8 @@ CDbxSQLite::~CDbxSQLite() ///////////////////////////////////////////////////////////////////////////////////////// +#define CURRVER 6 + int CDbxSQLite::Create() { ptrA path(mir_utf8encodeW(m_wszFileName)); @@ -71,15 +73,13 @@ int CDbxSQLite::Create() rc = sqlite3_exec(m_db, "CREATE INDEX idx_settings_module ON settings(module);", nullptr, nullptr, nullptr); logError(rc, __FILE__, __LINE__); - DBVARIANT dbv = { DBVT_BYTE, 2 }; + DBVARIANT dbv = { DBVT_BYTE, CURRVER }; WriteContactSetting(0, "Compatibility", "Sqlite", &dbv); return 0; } ///////////////////////////////////////////////////////////////////////////////////////// -#define CURRVER 6 - static bool g_bConversionOver = false; static INT_PTR CALLBACK MsbBoxWndProc(HWND hwndDlg, UINT uMsg, WPARAM, LPARAM) -- cgit v1.2.3