Constraints should only be applied for enforced contracts, but after #1296 they are also being added when a contract is not enforced. When there are NULL values in the column specified as a primary ...