I develop projects with databases which are maintained as a MySQL workbench file, which is a binary file. Since you can’t easily tell the difference in a binary file between to commits, it’s required that you update the SQL create script for that schema before committing. That way, you can run a diff of the SQL file to see what changed.
Sometimes, people either forget or get lazy and don’t update the SQL file. How can I use subversion to require that any commit which includes the workbench file must also include the SQL file?
You can write a Hook Script on the server to make this a requirement.
You can use the pre-commit-hook to check if it contains the workbench file and check if it contains the SQL file as well…if not abort the commit.