IssueID #11107 workaround foreign key constraint