mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-17 23:24:46 +00:00
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:
parent
375f50e962
commit
5d23254c8e
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue