summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-28 15:27:12 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-28 15:27:12 +0300
commit9f0f64236819b9cc26e4517b1ad1e273c669b394 (patch)
tree6d489643e4a0d837188fb5b610eb781b631673a5
parent965a9bd4bd9ae76978a85c20ebebc22ed3de5772 (diff)
Dbx_Sqlite: fix for profile creation
-rw-r--r--plugins/Dbx_sqlite/src/dbintf.cpp6
1 files changed, 3 insertions, 3 deletions
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)