/*UPDATEREVISION*/
INSERT INTO site (`setting`, `value`, `updateddate` ) VALUES ('dbversion', '$Rev: 2385 $', now()) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), updateddate=now();

/*PATCHHERE*/
update releases join 
( select id, case when passwordstatus = 1 then 2 else 1 end as passwordstatus from releases ) reverse on reverse.id = releases.id
set releases.passwordstatus = reverse.passwordstatus
where releases.passwordstatus > 0;