20260414231618_AllowMultipleSettlementAccounts.cs 1.2 KB

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