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 @@ -528,16 +528,18 @@ std::vector SQLiteQueryExecutor::getAllMessageStoreThreads() const { static std::string getAllMessageStoreThreadsSQL = - "SELECT * " - "FROM message_store_threads;"; + "SELECT * FROM message_store_threads " + "UNION " + "SELECT * FROM backup_message_store_threads;"; return getAllEntities( this->getConnection(), getAllMessageStoreThreadsSQL); } std::vector SQLiteQueryExecutor::getAllThreads() const { static std::string getAllThreadsSQL = - "SELECT * " - "FROM threads;"; + "SELECT * FROM threads " + "UNION " + "SELECT * FROM backup_threads;"; return getAllEntities(this->getConnection(), getAllThreadsSQL); }; @@ -945,8 +947,9 @@ std::vector SQLiteQueryExecutor::getAllThreadActivityEntries() const { static std::string getAllThreadActivityEntriesSQL = - "SELECT * " - "FROM thread_activity;"; + "SELECT * FROM thread_activity " + "UNION " + "SELECT * FROM backup_thread_activity;"; return getAllEntities( this->getConnection(), getAllThreadActivityEntriesSQL); } @@ -985,8 +988,9 @@ std::vector SQLiteQueryExecutor::getAllEntries() const { static std::string getAllEntriesSQL = - "SELECT * " - "FROM entries;"; + "SELECT * FROM entries " + "UNION " + "SELECT * FROM backup_entries;"; return getAllEntities(this->getConnection(), getAllEntriesSQL); } @@ -1033,8 +1037,9 @@ std::vector SQLiteQueryExecutor::getAllMessageStoreLocalMessageInfos() const { static std::string getAllLocalMessageInfosSQL = - "SELECT * " - "FROM message_store_local;"; + "SELECT * FROM message_store_local " + "UNION " + "SELECT * FROM backup_message_store_local;"; return getAllEntities( this->getConnection(), getAllLocalMessageInfosSQL); } diff --git a/web/shared-worker/_generated/comm_query_executor.wasm b/web/shared-worker/_generated/comm_query_executor.wasm index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@