Add constraint to mysql