+++ This bug was initially created as a clone of Bug #440366 +++ Add FK constraints for flagexclusions table and flaginclusions table.
The patch has been accepted by upstream. close this bug.