Add source URL tracking and display for AppImages

This commit is contained in:
lashman
2026-02-27 23:40:18 +02:00
parent f5685e03e3
commit 78f004ff4f
4 changed files with 41 additions and 2 deletions

View File

@@ -1744,6 +1744,16 @@ impl Database {
Ok(self.conn.last_insert_rowid())
}
// --- Source URL ---
pub fn set_source_url(&self, id: i64, url: Option<&str>) -> SqlResult<()> {
self.conn.execute(
"UPDATE appimages SET source_url = ?2 WHERE id = ?1",
params![id, url],
)?;
Ok(())
}
// --- Version rollback ---
pub fn set_previous_version(&self, id: i64, path: Option<&str>) -> SqlResult<()> {