Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3350083
D10774.id36254.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
D10774.id36254.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
@@ -467,6 +467,15 @@
return create_table(db, query, "users");
}
+bool create_keyservers_table(sqlite3 *db) {
+ std::string query =
+ "CREATE TABLE IF NOT EXISTS keyservers ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " keyserver_info TEXT NOT NULL"
+ ");";
+ return create_table(db, query, "keyservers");
+}
+
bool create_schema(sqlite3 *db) {
char *error;
sqlite3_exec(
@@ -550,6 +559,11 @@
" user_info TEXT NOT NULL"
");"
+ "CREATE TABLE IF NOT EXISTS keyservers ("
+ " id TEXT UNIQUE PRIMARY KEY NOT NULL,"
+ " keyserver_info TEXT NOT NULL"
+ ");"
+
"CREATE INDEX IF NOT EXISTS media_idx_container"
" ON media (container);"
@@ -810,7 +824,8 @@
{29, {create_reports_table, true}},
{30, {create_persist_storage_table, true}},
{31, {recreate_message_store_threads_table, true}},
- {32, {create_users_table, true}}}};
+ {32, {create_users_table, true}},
+ {33, {create_keyservers_table, true}}}};
enum class MigrationResult { SUCCESS, FAILURE, NOT_APPLIED };
diff --git a/web/database/_generated/comm_query_executor.wasm b/web/database/_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
Sat, Nov 23, 8:39 PM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2572372
Default Alt Text
D10774.id36254.diff (1 KB)
Attached To
Mode
D10774: [SQLite] add `keyservers` table for `KeyserverStore` data
Attached
Detach File
Event Timeline
Log In to Comment