20260705204845_AddActivityTokenConfig.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddActivityTokenConfig : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<int>(
  12. name: "ActivityToken_CommentToken",
  13. table: "Config",
  14. type: "int",
  15. nullable: false,
  16. defaultValue: 0,
  17. comment: "댓글 작성 지급 토큰");
  18. migrationBuilder.AddColumn<int>(
  19. name: "ActivityToken_DailyTokenCap",
  20. table: "Config",
  21. type: "int",
  22. nullable: false,
  23. defaultValue: 0,
  24. comment: "활동 토큰 일일 상한 (0=무제한)");
  25. migrationBuilder.AddColumn<int>(
  26. name: "ActivityToken_PostToken",
  27. table: "Config",
  28. type: "int",
  29. nullable: false,
  30. defaultValue: 0,
  31. comment: "게시글 작성 지급 토큰");
  32. }
  33. /// <inheritdoc />
  34. protected override void Down(MigrationBuilder migrationBuilder)
  35. {
  36. migrationBuilder.DropColumn(
  37. name: "ActivityToken_CommentToken",
  38. table: "Config");
  39. migrationBuilder.DropColumn(
  40. name: "ActivityToken_DailyTokenCap",
  41. table: "Config");
  42. migrationBuilder.DropColumn(
  43. name: "ActivityToken_PostToken",
  44. table: "Config");
  45. }
  46. }
  47. }