20260324174948_AddPaymentOrderNew.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Persistence.Migrations;
  4. /// <inheritdoc />
  5. public partial class AddPaymentOrderNew : Migration
  6. {
  7. /// <inheritdoc />
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AlterColumn<decimal>(
  11. name: "Payment_DanalVbankFeeRate",
  12. table: "Config",
  13. type: "decimal(5,2)",
  14. precision: 5,
  15. scale: 2,
  16. nullable: true,
  17. oldClrType: typeof(decimal),
  18. oldType: "decimal(18,2)",
  19. oldNullable: true);
  20. migrationBuilder.AlterColumn<decimal>(
  21. name: "Payment_DanalVbankFeeAmount",
  22. table: "Config",
  23. type: "decimal(18,0)",
  24. precision: 18,
  25. scale: 0,
  26. nullable: true,
  27. oldClrType: typeof(decimal),
  28. oldType: "decimal(18,2)",
  29. oldNullable: true);
  30. migrationBuilder.AlterColumn<decimal>(
  31. name: "Payment_DanalTransferFeeRate",
  32. table: "Config",
  33. type: "decimal(5,2)",
  34. precision: 5,
  35. scale: 2,
  36. nullable: true,
  37. oldClrType: typeof(decimal),
  38. oldType: "decimal(18,2)",
  39. oldNullable: true);
  40. migrationBuilder.AlterColumn<decimal>(
  41. name: "Payment_DanalTransferFeeAmount",
  42. table: "Config",
  43. type: "decimal(18,0)",
  44. precision: 18,
  45. scale: 0,
  46. nullable: true,
  47. oldClrType: typeof(decimal),
  48. oldType: "decimal(18,2)",
  49. oldNullable: true);
  50. migrationBuilder.AlterColumn<decimal>(
  51. name: "Payment_DanalSimpleFeeRate",
  52. table: "Config",
  53. type: "decimal(5,2)",
  54. precision: 5,
  55. scale: 2,
  56. nullable: true,
  57. oldClrType: typeof(decimal),
  58. oldType: "decimal(18,2)",
  59. oldNullable: true);
  60. migrationBuilder.AlterColumn<decimal>(
  61. name: "Payment_DanalSimpleFeeAmount",
  62. table: "Config",
  63. type: "decimal(18,0)",
  64. precision: 18,
  65. scale: 0,
  66. nullable: true,
  67. oldClrType: typeof(decimal),
  68. oldType: "decimal(18,2)",
  69. oldNullable: true);
  70. migrationBuilder.AlterColumn<decimal>(
  71. name: "Payment_DanalCardFeeRate",
  72. table: "Config",
  73. type: "decimal(5,2)",
  74. precision: 5,
  75. scale: 2,
  76. nullable: true,
  77. oldClrType: typeof(decimal),
  78. oldType: "decimal(18,2)",
  79. oldNullable: true);
  80. migrationBuilder.AlterColumn<decimal>(
  81. name: "Payment_DanalCardFeeAmount",
  82. table: "Config",
  83. type: "decimal(18,0)",
  84. precision: 18,
  85. scale: 0,
  86. nullable: true,
  87. oldClrType: typeof(decimal),
  88. oldType: "decimal(18,2)",
  89. oldNullable: true);
  90. }
  91. /// <inheritdoc />
  92. protected override void Down(MigrationBuilder migrationBuilder)
  93. {
  94. migrationBuilder.AlterColumn<decimal>(
  95. name: "Payment_DanalVbankFeeRate",
  96. table: "Config",
  97. type: "decimal(18,2)",
  98. nullable: true,
  99. oldClrType: typeof(decimal),
  100. oldType: "decimal(5,2)",
  101. oldPrecision: 5,
  102. oldScale: 2,
  103. oldNullable: true);
  104. migrationBuilder.AlterColumn<decimal>(
  105. name: "Payment_DanalVbankFeeAmount",
  106. table: "Config",
  107. type: "decimal(18,2)",
  108. nullable: true,
  109. oldClrType: typeof(decimal),
  110. oldType: "decimal(18,0)",
  111. oldPrecision: 18,
  112. oldScale: 0,
  113. oldNullable: true);
  114. migrationBuilder.AlterColumn<decimal>(
  115. name: "Payment_DanalTransferFeeRate",
  116. table: "Config",
  117. type: "decimal(18,2)",
  118. nullable: true,
  119. oldClrType: typeof(decimal),
  120. oldType: "decimal(5,2)",
  121. oldPrecision: 5,
  122. oldScale: 2,
  123. oldNullable: true);
  124. migrationBuilder.AlterColumn<decimal>(
  125. name: "Payment_DanalTransferFeeAmount",
  126. table: "Config",
  127. type: "decimal(18,2)",
  128. nullable: true,
  129. oldClrType: typeof(decimal),
  130. oldType: "decimal(18,0)",
  131. oldPrecision: 18,
  132. oldScale: 0,
  133. oldNullable: true);
  134. migrationBuilder.AlterColumn<decimal>(
  135. name: "Payment_DanalSimpleFeeRate",
  136. table: "Config",
  137. type: "decimal(18,2)",
  138. nullable: true,
  139. oldClrType: typeof(decimal),
  140. oldType: "decimal(5,2)",
  141. oldPrecision: 5,
  142. oldScale: 2,
  143. oldNullable: true);
  144. migrationBuilder.AlterColumn<decimal>(
  145. name: "Payment_DanalSimpleFeeAmount",
  146. table: "Config",
  147. type: "decimal(18,2)",
  148. nullable: true,
  149. oldClrType: typeof(decimal),
  150. oldType: "decimal(18,0)",
  151. oldPrecision: 18,
  152. oldScale: 0,
  153. oldNullable: true);
  154. migrationBuilder.AlterColumn<decimal>(
  155. name: "Payment_DanalCardFeeRate",
  156. table: "Config",
  157. type: "decimal(18,2)",
  158. nullable: true,
  159. oldClrType: typeof(decimal),
  160. oldType: "decimal(5,2)",
  161. oldPrecision: 5,
  162. oldScale: 2,
  163. oldNullable: true);
  164. migrationBuilder.AlterColumn<decimal>(
  165. name: "Payment_DanalCardFeeAmount",
  166. table: "Config",
  167. type: "decimal(18,2)",
  168. nullable: true,
  169. oldClrType: typeof(decimal),
  170. oldType: "decimal(18,0)",
  171. oldPrecision: 18,
  172. oldScale: 0,
  173. oldNullable: true);
  174. }
  175. }