Changed ; in sql syntax for generating constraint