using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class AllowMultipleSettlementAccounts : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_SettlementAccount_ChannelID_MemberID", table: "SettlementAccount"); migrationBuilder.CreateIndex( name: "IX_SettlementAccount_ChannelID_MemberID", table: "SettlementAccount", columns: new[] { "ChannelID", "MemberID" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_SettlementAccount_ChannelID_MemberID", table: "SettlementAccount"); migrationBuilder.CreateIndex( name: "IX_SettlementAccount_ChannelID_MemberID", table: "SettlementAccount", columns: new[] { "ChannelID", "MemberID" }, unique: true); } } }