This is something I came up with a while back when I was looking at the daunting task of migrating to the latest PEQ database while keeping my customizations. It's kind of nasty to look at (the source files in particular) but it does work.
It's all PHP but should run on LAMP or WAMP with appropriate database credentials.
http://216.49.224.132/eq/dbdiff.tar.gz