Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3494849
D12247.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12247.diff
View Options
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
@@ -671,6 +671,15 @@
return create_table(db, query, "entries");
}
+bool create_message_store_local_table(sqlite3 *db) {
+ std::string query =
+ "CREATE TABLE IF NOT EXISTS message_store_local ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " local_message_info TEXT NOT NULL"
+ ");";
+ return create_table(db, query, "message_store_local");
+}
+
bool create_schema(sqlite3 *db) {
char *error;
sqlite3_exec(
@@ -814,6 +823,11 @@
" entry TEXT NOT NULL"
");"
+ "CREATE TABLE IF NOT EXISTS message_store_local ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " local_message_info TEXT NOT NULL"
+ ");"
+
"CREATE INDEX IF NOT EXISTS media_idx_container"
" ON media (container);"
@@ -1069,7 +1083,8 @@
{43, {create_thread_activity_table, true}},
{44, {create_received_messages_to_device, true}},
{45, {recreate_outbound_p2p_messages_table, true}},
- {46, {create_entries_table, true}}}};
+ {46, {create_entries_table, true}},
+ {47, {create_message_store_local_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
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 6:59 AM (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2680847
Default Alt Text
D12247.diff (1 KB)
Attached To
Mode
D12247: [sqlite] create message store local table
Attached
Detach File
Event Timeline
Log In to Comment