Upgrade scripts for DEV11
Manually (and automatically) fix constraint naming

The few unit types are now corrected by hand since there
is currently no way to code generate them. The map types
were also missing properly named FKs, but these could be
handled by the introduction of a new annotation.

Note: a check has now been added to travis-build which
should prevent generated FK constraint names from being
included in a schema.