20260611115059_AlterApiCommissionRatePrecision.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AlterApiCommissionRatePrecision : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<decimal>(
  12. name: "ApiCommissionRate",
  13. table: "Game",
  14. type: "decimal(10,7)",
  15. precision: 10,
  16. scale: 7,
  17. nullable: false,
  18. comment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상",
  19. oldClrType: typeof(decimal),
  20. oldType: "decimal(18,2)",
  21. oldComment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상");
  22. migrationBuilder.AlterColumn<decimal>(
  23. name: "CommissionRate",
  24. table: "ApiPurchase",
  25. type: "decimal(10,7)",
  26. precision: 10,
  27. scale: 7,
  28. nullable: false,
  29. oldClrType: typeof(decimal),
  30. oldType: "decimal(5,2)",
  31. oldPrecision: 5,
  32. oldScale: 2);
  33. }
  34. /// <inheritdoc />
  35. protected override void Down(MigrationBuilder migrationBuilder)
  36. {
  37. migrationBuilder.AlterColumn<decimal>(
  38. name: "ApiCommissionRate",
  39. table: "Game",
  40. type: "decimal(18,2)",
  41. nullable: false,
  42. oldClrType: typeof(decimal),
  43. oldType: "decimal(10,7)",
  44. oldPrecision: 10,
  45. oldScale: 7,
  46. oldComment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상");
  47. migrationBuilder.AlterColumn<decimal>(
  48. name: "CommissionRate",
  49. table: "ApiPurchase",
  50. type: "decimal(5,2)",
  51. precision: 5,
  52. scale: 2,
  53. nullable: false,
  54. oldClrType: typeof(decimal),
  55. oldType: "decimal(10,7)",
  56. oldPrecision: 10,
  57. oldScale: 7);
  58. }
  59. }
  60. }