20260523105735_MoveChannelCommissionToChannel.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class MoveChannelCommissionToChannel : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.DropColumn(
  12. name: "ChannelCommissionRate",
  13. table: "Game");
  14. migrationBuilder.AlterColumn<decimal>(
  15. name: "PlatformFeeRate",
  16. table: "Channel",
  17. type: "decimal(5,2)",
  18. precision: 5,
  19. scale: 2,
  20. nullable: false,
  21. comment: "후원 수수료(%) — dpot 몫",
  22. oldClrType: typeof(decimal),
  23. oldType: "decimal(5,2)",
  24. oldPrecision: 5,
  25. oldScale: 2,
  26. oldComment: "������(%)");
  27. migrationBuilder.AddColumn<decimal>(
  28. name: "StoreCommissionRate",
  29. table: "Channel",
  30. type: "decimal(5,2)",
  31. precision: 5,
  32. scale: 2,
  33. nullable: false,
  34. defaultValue: 0m,
  35. comment: "상점 매출 보상률(%) — 채널 몫");
  36. }
  37. /// <inheritdoc />
  38. protected override void Down(MigrationBuilder migrationBuilder)
  39. {
  40. migrationBuilder.DropColumn(
  41. name: "StoreCommissionRate",
  42. table: "Channel");
  43. migrationBuilder.AddColumn<decimal>(
  44. name: "ChannelCommissionRate",
  45. table: "Game",
  46. type: "decimal(5,2)",
  47. precision: 5,
  48. scale: 2,
  49. nullable: false,
  50. defaultValue: 0m,
  51. comment: "후원 채널 보상률(%)");
  52. migrationBuilder.AlterColumn<decimal>(
  53. name: "PlatformFeeRate",
  54. table: "Channel",
  55. type: "decimal(5,2)",
  56. precision: 5,
  57. scale: 2,
  58. nullable: false,
  59. comment: "������(%)",
  60. oldClrType: typeof(decimal),
  61. oldType: "decimal(5,2)",
  62. oldPrecision: 5,
  63. oldScale: 2,
  64. oldComment: "후원 수수료(%) — dpot 몫");
  65. }
  66. }
  67. }