20260414231618_AllowMultipleSettlementAccounts.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb;
  4. /// <inheritdoc />
  5. public partial class AllowMultipleSettlementAccounts : Migration
  6. {
  7. /// <inheritdoc />
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.DropIndex(
  11. name: "IX_SettlementAccount_ChannelID_MemberID",
  12. table: "SettlementAccount");
  13. migrationBuilder.CreateIndex(
  14. name: "IX_SettlementAccount_ChannelID_MemberID",
  15. table: "SettlementAccount",
  16. columns: new[] { "ChannelID", "MemberID" });
  17. }
  18. /// <inheritdoc />
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.DropIndex(
  22. name: "IX_SettlementAccount_ChannelID_MemberID",
  23. table: "SettlementAccount");
  24. migrationBuilder.CreateIndex(
  25. name: "IX_SettlementAccount_ChannelID_MemberID",
  26. table: "SettlementAccount",
  27. columns: new[] { "ChannelID", "MemberID" },
  28. unique: true);
  29. }
  30. }