-- Add thumbnail_filename column to images table
ALTER TABLE images ADD COLUMN thumbnail_filename VARCHAR(255) NULL AFTER filename;

-- Add index for thumbnail filename
ALTER TABLE images ADD INDEX idx_thumbnail_filename (thumbnail_filename);
