20260330004927_UpdateRankConfig.cs 1.1 KB

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