fix rendering of foreign key constraints when using a metadata schema