SQL constraint added for checking updates