public void Downgrade(IDotEntityTransaction transaction) { Db.DropConstraint(Relation.Create <User, StoreCredit>("Id", "UserId"), transaction); Db.DropTable <StoreCredit>(transaction); Db.DropColumn <User>(nameof(User.FirstActivationDate), transaction); Db.DropColumn <User>(nameof(User.IsAffiliate), transaction); Db.DropColumn <User>(nameof(User.AffiliateActive), transaction); Db.DropColumn <User>(nameof(User.AffiliateFirstActivationDate), transaction); Db.DropColumn <Order>(nameof(Order.UsedStoreCredits), transaction); Db.DropColumn <Order>(nameof(Order.StoreCredits), transaction); Db.DropColumn <Order>(nameof(Order.StoreCreditAmount), transaction); Db.DropColumn <Cart>(nameof(Cart.UseStoreCredits), transaction); }
public void Downgrade(IDotEntityTransaction transaction) { Db.DropConstraint(Relation.Create <Media, UiSlider>("Id", "MediaId"), transaction); Db.DropTable <UiSlider>(transaction); }