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

/*PATCHHERE*/
ALTER TABLE users ADD COLUMN template VARCHAR(255) NULL;
update users set template = (select value from site where setting = 'style');