I’ve checked in a check_foreign_keys.py script that goes through the Turbine XML scripts and checks that the foreign keys have been defined correctly. This comes out of some feedback by Mark de Brauw who discovered errors in the SQL Schema by loading everything into MySQL Workbench – thanks Mark!
