diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteBackup.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteBackup.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteBackup.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteBackup.cpp @@ -28,6 +28,7 @@ "backup_thread_activity", "backup_entries", "backup_message_store_local", + "holders", }; void SQLiteBackup::cleanupDatabaseExceptAllowlist(sqlite3 *db) { diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchema.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchema.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchema.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchema.cpp @@ -235,6 +235,12 @@ " operation TEXT NOT NULL" ");" + "CREATE TABLE IF NOT EXISTS holders (" + " hash TEXT PRIMARY KEY," + " holder TEXT NOT NULL," + " status TEXT NOT NULL" + ");" + "CREATE INDEX IF NOT EXISTS media_idx_container" " ON media (container);" diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchemaMigrations.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchemaMigrations.cpp --- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchemaMigrations.cpp +++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteSchemaMigrations.cpp @@ -906,6 +906,17 @@ return false; } +bool create_holders_table(sqlite3 *db) { + std::string query = + "CREATE TABLE IF NOT EXISTS holders (" + " hash TEXT PRIMARY KEY," + " holder TEXT NOT NULL," + " status TEXT NOT NULL" + ");"; + + return SQLiteSchema::createTable(db, query, "holders"); +} + SQLiteMigrations SQLiteSchema::migrations{ {{1, {create_drafts_table, true}}, {2, {rename_threadID_to_key, true}}, @@ -952,6 +963,7 @@ {53, {add_timestamps_column_to_threads_table, true}}, {54, {create_dm_operations_table, true}}, {55, {convert_target_message_to_standard_column, true}}, - {56, {create_backup_tables, true}}}}; + {56, {create_backup_tables, true}}, + {57, {create_holders_table, true}}}}; } // namespace comm 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$@