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

/*PATCHHERE*/
UPDATE releases
INNER JOIN predb ON searchname = dirname
SET searchname = dirname, name = dirname
WHERE dirname != binary(searchname)
AND binary(dirname) NOT REGEXP '^[_a-z0-9\.\-]+$';