-- Add attempts column and expand status enum for media_queue retry logic
ALTER TABLE media_queue
    ADD COLUMN IF NOT EXISTS attempts INT NOT NULL DEFAULT 0,
    MODIFY COLUMN status ENUM('pending','processing','done','failed','permanently_failed') DEFAULT 'pending';
