20260324174948_AddPaymentOrderNew.cs 6.5 KB

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