20260330004927_UpdateRankConfig.cs 1.0 KB

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