20260704224728_AddSignupRewardConfig.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddSignupRewardConfig : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<int>(
  12. name: "SignupReward_CashAmount",
  13. table: "Config",
  14. type: "int",
  15. nullable: false,
  16. defaultValue: 0,
  17. comment: "지급 캐시 (Adjusted)");
  18. migrationBuilder.AddColumn<int>(
  19. name: "SignupReward_CoinAmount",
  20. table: "Config",
  21. type: "int",
  22. nullable: false,
  23. defaultValue: 0,
  24. comment: "지급 코인 (Airdrop)");
  25. migrationBuilder.AddColumn<bool>(
  26. name: "SignupReward_Enabled",
  27. table: "Config",
  28. type: "bit",
  29. nullable: false,
  30. defaultValue: false,
  31. comment: "가입 축하 보상 활성화");
  32. migrationBuilder.AddColumn<int>(
  33. name: "SignupReward_ExpAmount",
  34. table: "Config",
  35. type: "int",
  36. nullable: false,
  37. defaultValue: 0,
  38. comment: "지급 경험치");
  39. }
  40. /// <inheritdoc />
  41. protected override void Down(MigrationBuilder migrationBuilder)
  42. {
  43. migrationBuilder.DropColumn(
  44. name: "SignupReward_CashAmount",
  45. table: "Config");
  46. migrationBuilder.DropColumn(
  47. name: "SignupReward_CoinAmount",
  48. table: "Config");
  49. migrationBuilder.DropColumn(
  50. name: "SignupReward_Enabled",
  51. table: "Config");
  52. migrationBuilder.DropColumn(
  53. name: "SignupReward_ExpAmount",
  54. table: "Config");
  55. }
  56. }
  57. }