changed the id constraints for sql migration