automatically truncate grant id column