X224: One or more foreign key fields must be nullable for SET NULL rule.

The SET NULL clause of the FOREIGN KEY statement is invalid because no column of the key allows NULL values. Change a column of the key to allow NULL values, or change the delete rule.