Add upgrade rules.