add component constraint for upgrade_bz query