<str> has no matching UNIQUE or PRIMARY KEY constraint Explanation: You specified a referenced column list which does not match the columns specified as the key for any UNIQUE or PRIMARY KEY constraint. The referenced column list must be an exact match for the key of such a constraint. User Action: Specify a referenced column list that matches a key for a UNIQUE or PRIMARY KEY column, or define a UNIQUE or PRIMARY KEY constraint that matches the referenced column list you specified.