wp-types – How to allow custom fields to be saved in the revision

You could try CF Revision Manager, a library for this job. See also the GitHub repo. I haven’t used it, so I cannot offer code examples.

There is also the very fresh Trac ticket #20564 where Alex is asking to get this functionality into the core.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)