Fixed content_id persistence
Build and Publish / Build and Publish Docker Image (push) Successful in 7m30s

This commit is contained in:
Ultradesu
2026-07-20 18:40:32 +03:00
parent 42c772f735
commit 5b339aa921
5 changed files with 110 additions and 68 deletions
+8
View File
@@ -44,6 +44,14 @@ const SCHEMA: &[&str] = &[
ticket TEXT NOT NULL,
last_seen_ms BIGINT NOT NULL
)",
"CREATE TABLE IF NOT EXISTS furumusic__federation_content_id_cache (
media_file_id BIGINT PRIMARY KEY,
sha256_hash TEXT NOT NULL,
content_id TEXT NOT NULL,
updated_at TEXT NOT NULL
)",
"CREATE INDEX IF NOT EXISTS idx_furumusic_federation_content_id_cache_content_id
ON furumusic__federation_content_id_cache(content_id)",
];
#[derive(Debug, Clone)]