DROP INDEX IF EXISTS idx_image_exif_date_backfill;

CREATE INDEX idx_image_exif_date_backfill
    ON image_exif (library_id, id)
    WHERE date_taken IS NULL OR date_taken_source = 'fs_time';
