diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h @@ -10,7 +10,7 @@ namespace comm { class SQLiteQueryExecutor : public DatabaseQueryExecutor { - void migrate() const; + static void migrate(); static void assign_encryption_key(); static auto &getStorage(); void setMetadata(std::string entry_name, std::string data) const override; diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp @@ -693,7 +693,7 @@ return true; } -void SQLiteQueryExecutor::migrate() const { +void SQLiteQueryExecutor::migrate() { validate_encryption(); sqlite3 *db; @@ -836,7 +836,7 @@ } SQLiteQueryExecutor::SQLiteQueryExecutor() { - this->migrate(); + SQLiteQueryExecutor::migrate(); } std::string SQLiteQueryExecutor::getDraft(std::string key) const { @@ -1117,7 +1117,7 @@ SQLiteQueryExecutor::assign_encryption_key(); }; run_with_native_accessible(native_dependent_task); - this->migrate(); + SQLiteQueryExecutor::migrate(); } } // namespace comm