Page MenuHomePhabricator

D11576.diff
No OneTemporary

D11576.diff

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
@@ -619,6 +619,15 @@
return false;
}
+bool create_thread_activity_table(sqlite3 *db) {
+ std::string query =
+ "CREATE TABLE IF NOT EXISTS thread_activity ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " thread_activity_store_entry TEXT NOT NULL"
+ ");";
+ return create_table(db, query, "thread_activity");
+}
+
bool create_schema(sqlite3 *db) {
char *error;
sqlite3_exec(
@@ -743,6 +752,11 @@
" aux_user_info TEXT NOT NULL"
");"
+ "CREATE TABLE IF NOT EXISTS thread_activity ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " thread_activity_store_entry TEXT NOT NULL"
+ ");"
+
"CREATE INDEX IF NOT EXISTS media_idx_container"
" ON media (container);"
@@ -994,7 +1008,8 @@
{39, {create_synced_metadata_table, true}},
{40, {create_keyservers_synced, true}},
{41, {create_aux_user_table, true}},
- {42, {add_version_column_to_olm_persist_sessions_table, true}}}};
+ {42, {add_version_column_to_olm_persist_sessions_table, true}},
+ {43, {create_thread_activity_table, true}}}};
enum class MigrationResult { SUCCESS, FAILURE, NOT_APPLIED };
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$@<O00001
literal 0
Hc$@<O00001

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 2:24 PM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590661
Default Alt Text
D11576.diff (1 KB)

Event Timeline