febdf41469
_ensure_indexes() now verifies the target column exists in the table before executing CREATE INDEX IF NOT EXISTS. This prevents failures when migrating legacy database schemas that don't yet have all columns (e.g. files table without created_at or mime_type). Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>