ALTER TABLE image_uploads -- UTC time at which cleanup first observed that this upload had no references. ADD COLUMN orphaned_at DATETIME(6) NULL DEFAULT NULL, ADD INDEX image_uploads_orphaned_at (orphaned_at);