UPDATE alerts SET last_status = 'ok' WHERE last_status = 'good'; UPDATE alerts SET last_status = 'alert_pending' WHERE last_status = 'pending';