Page MenuHomePhabricator

D10774.id36254.diff
No OneTemporary

D10774.id36254.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
@@ -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

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)

Event Timeline