refactor: remove stale thumbnail_blob migration

The column is defined in the initial CREATE TABLE statement, so the
ALTER TABLE migration was redundant from day one -- it always failed
silently via .ok(). No existing user databases lack this column.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Eduard Tolosa 2026-05-25 04:03:53 -05:00
parent 375f50e962
commit 5d23254c8e

View file

@ -80,10 +80,6 @@ impl Db {
CREATE UNIQUE INDEX IF NOT EXISTS idx_hash ON clipboard_history (content_hash);",
)?;
// Migration: add thumbnail_blob column to existing databases.
conn.execute_batch("ALTER TABLE clipboard_history ADD COLUMN thumbnail_blob BLOB;")
.ok(); // Silently ignore error if column already exists.
// FTS5 full-text search index over content_text only.
// Images and other non-text items are NOT indexed - search filters
// them out (an empty search shows everything; a non-empty search