20260515083158_AddPaymentConfigExtended.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddPaymentConfigExtended : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.DropColumn(
  12. name: "Payment_DanalSimpleFeeAmount",
  13. table: "Config");
  14. migrationBuilder.DropColumn(
  15. name: "Payment_DanalSimpleFeeRate",
  16. table: "Config");
  17. migrationBuilder.AlterColumn<decimal>(
  18. name: "Payment_DanalVbankFeeRate",
  19. table: "Config",
  20. type: "decimal(5,2)",
  21. precision: 5,
  22. scale: 2,
  23. nullable: true,
  24. comment: "가상계좌 수수료(%)",
  25. oldClrType: typeof(decimal),
  26. oldType: "decimal(5,2)",
  27. oldPrecision: 5,
  28. oldScale: 2,
  29. oldNullable: true,
  30. oldComment: "가상계좌 수수료(%)");
  31. migrationBuilder.AlterColumn<decimal>(
  32. name: "Payment_DanalVbankFeeAmount",
  33. table: "Config",
  34. type: "decimal(18,0)",
  35. precision: 18,
  36. scale: 0,
  37. nullable: true,
  38. comment: "가상계좌 수수료(원)",
  39. oldClrType: typeof(decimal),
  40. oldType: "decimal(18,0)",
  41. oldPrecision: 18,
  42. oldNullable: true,
  43. oldComment: "가상계좌 수수료(원)");
  44. migrationBuilder.AlterColumn<decimal>(
  45. name: "Payment_DanalTransferFeeRate",
  46. table: "Config",
  47. type: "decimal(5,2)",
  48. precision: 5,
  49. scale: 2,
  50. nullable: true,
  51. comment: "계좌이체 수수료(%)",
  52. oldClrType: typeof(decimal),
  53. oldType: "decimal(5,2)",
  54. oldPrecision: 5,
  55. oldScale: 2,
  56. oldNullable: true,
  57. oldComment: "계좌이체 수수료(%)");
  58. migrationBuilder.AlterColumn<decimal>(
  59. name: "Payment_DanalTransferFeeAmount",
  60. table: "Config",
  61. type: "decimal(18,0)",
  62. precision: 18,
  63. scale: 0,
  64. nullable: true,
  65. comment: "계좌이체 수수료(원)",
  66. oldClrType: typeof(decimal),
  67. oldType: "decimal(18,0)",
  68. oldPrecision: 18,
  69. oldNullable: true,
  70. oldComment: "계좌이체 수수료(원)");
  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. comment: "신용카드 수수료(%)",
  79. oldClrType: typeof(decimal),
  80. oldType: "decimal(5,2)",
  81. oldPrecision: 5,
  82. oldScale: 2,
  83. oldNullable: true,
  84. oldComment: "신용카드 수수료(%)");
  85. migrationBuilder.AlterColumn<decimal>(
  86. name: "Payment_DanalCardFeeAmount",
  87. table: "Config",
  88. type: "decimal(18,0)",
  89. precision: 18,
  90. scale: 0,
  91. nullable: true,
  92. comment: "신용카드 수수료(원)",
  93. oldClrType: typeof(decimal),
  94. oldType: "decimal(18,0)",
  95. oldPrecision: 18,
  96. oldNullable: true,
  97. oldComment: "신용카드 수수료(원)");
  98. migrationBuilder.AddColumn<decimal>(
  99. name: "Payment_DanalKakaoPayFeeAmount",
  100. table: "Config",
  101. type: "decimal(18,0)",
  102. precision: 18,
  103. scale: 0,
  104. nullable: true,
  105. comment: "카카오페이 수수료(원)");
  106. migrationBuilder.AddColumn<decimal>(
  107. name: "Payment_DanalKakaoPayFeeRate",
  108. table: "Config",
  109. type: "decimal(5,2)",
  110. precision: 5,
  111. scale: 2,
  112. nullable: true,
  113. comment: "카카오페이 수수료(%)");
  114. migrationBuilder.AddColumn<decimal>(
  115. name: "Payment_DanalMobileFeeAmount",
  116. table: "Config",
  117. type: "decimal(18,0)",
  118. precision: 18,
  119. scale: 0,
  120. nullable: true,
  121. comment: "휴대폰 수수료(원)");
  122. migrationBuilder.AddColumn<decimal>(
  123. name: "Payment_DanalMobileFeeRate",
  124. table: "Config",
  125. type: "decimal(5,2)",
  126. precision: 5,
  127. scale: 2,
  128. nullable: true,
  129. comment: "휴대폰 수수료(%)");
  130. migrationBuilder.AddColumn<decimal>(
  131. name: "Payment_DanalNaverPayFeeAmount",
  132. table: "Config",
  133. type: "decimal(18,0)",
  134. precision: 18,
  135. scale: 0,
  136. nullable: true,
  137. comment: "네이버페이 수수료(원)");
  138. migrationBuilder.AddColumn<decimal>(
  139. name: "Payment_DanalNaverPayFeeRate",
  140. table: "Config",
  141. type: "decimal(5,2)",
  142. precision: 5,
  143. scale: 2,
  144. nullable: true,
  145. comment: "네이버페이 수수료(%)");
  146. migrationBuilder.AddColumn<bool>(
  147. name: "Payment_IsCardEnabled",
  148. table: "Config",
  149. type: "bit",
  150. nullable: false,
  151. defaultValue: false,
  152. comment: "신용카드 사용 여부");
  153. migrationBuilder.AddColumn<bool>(
  154. name: "Payment_IsKakaoPayEnabled",
  155. table: "Config",
  156. type: "bit",
  157. nullable: false,
  158. defaultValue: false,
  159. comment: "카카오페이 사용 여부");
  160. migrationBuilder.AddColumn<bool>(
  161. name: "Payment_IsMobileEnabled",
  162. table: "Config",
  163. type: "bit",
  164. nullable: false,
  165. defaultValue: false,
  166. comment: "휴대폰 사용 여부");
  167. migrationBuilder.AddColumn<bool>(
  168. name: "Payment_IsNaverPayEnabled",
  169. table: "Config",
  170. type: "bit",
  171. nullable: false,
  172. defaultValue: false,
  173. comment: "네이버페이 사용 여부");
  174. migrationBuilder.AddColumn<bool>(
  175. name: "Payment_IsTransferEnabled",
  176. table: "Config",
  177. type: "bit",
  178. nullable: false,
  179. defaultValue: false,
  180. comment: "계좌이체 사용 여부");
  181. migrationBuilder.AddColumn<bool>(
  182. name: "Payment_IsVirtualAccountEnabled",
  183. table: "Config",
  184. type: "bit",
  185. nullable: false,
  186. defaultValue: false,
  187. comment: "가상계좌 사용 여부");
  188. }
  189. /// <inheritdoc />
  190. protected override void Down(MigrationBuilder migrationBuilder)
  191. {
  192. migrationBuilder.DropColumn(
  193. name: "Payment_DanalKakaoPayFeeAmount",
  194. table: "Config");
  195. migrationBuilder.DropColumn(
  196. name: "Payment_DanalKakaoPayFeeRate",
  197. table: "Config");
  198. migrationBuilder.DropColumn(
  199. name: "Payment_DanalMobileFeeAmount",
  200. table: "Config");
  201. migrationBuilder.DropColumn(
  202. name: "Payment_DanalMobileFeeRate",
  203. table: "Config");
  204. migrationBuilder.DropColumn(
  205. name: "Payment_DanalNaverPayFeeAmount",
  206. table: "Config");
  207. migrationBuilder.DropColumn(
  208. name: "Payment_DanalNaverPayFeeRate",
  209. table: "Config");
  210. migrationBuilder.DropColumn(
  211. name: "Payment_IsCardEnabled",
  212. table: "Config");
  213. migrationBuilder.DropColumn(
  214. name: "Payment_IsKakaoPayEnabled",
  215. table: "Config");
  216. migrationBuilder.DropColumn(
  217. name: "Payment_IsMobileEnabled",
  218. table: "Config");
  219. migrationBuilder.DropColumn(
  220. name: "Payment_IsNaverPayEnabled",
  221. table: "Config");
  222. migrationBuilder.DropColumn(
  223. name: "Payment_IsTransferEnabled",
  224. table: "Config");
  225. migrationBuilder.DropColumn(
  226. name: "Payment_IsVirtualAccountEnabled",
  227. table: "Config");
  228. migrationBuilder.AlterColumn<decimal>(
  229. name: "Payment_DanalVbankFeeRate",
  230. table: "Config",
  231. type: "decimal(5,2)",
  232. precision: 5,
  233. scale: 2,
  234. nullable: true,
  235. oldClrType: typeof(decimal),
  236. oldType: "decimal(5,2)",
  237. oldPrecision: 5,
  238. oldScale: 2,
  239. oldNullable: true,
  240. oldComment: "가상계좌 수수료(%)");
  241. migrationBuilder.AlterColumn<decimal>(
  242. name: "Payment_DanalVbankFeeAmount",
  243. table: "Config",
  244. type: "decimal(18,0)",
  245. precision: 18,
  246. nullable: true,
  247. oldClrType: typeof(decimal),
  248. oldType: "decimal(18,0)",
  249. oldPrecision: 18,
  250. oldScale: 0,
  251. oldNullable: true,
  252. oldComment: "가상계좌 수수료(원)");
  253. migrationBuilder.AlterColumn<decimal>(
  254. name: "Payment_DanalTransferFeeRate",
  255. table: "Config",
  256. type: "decimal(5,2)",
  257. precision: 5,
  258. scale: 2,
  259. nullable: true,
  260. oldClrType: typeof(decimal),
  261. oldType: "decimal(5,2)",
  262. oldPrecision: 5,
  263. oldScale: 2,
  264. oldNullable: true,
  265. oldComment: "계좌이체 수수료(%)");
  266. migrationBuilder.AlterColumn<decimal>(
  267. name: "Payment_DanalTransferFeeAmount",
  268. table: "Config",
  269. type: "decimal(18,0)",
  270. precision: 18,
  271. nullable: true,
  272. oldClrType: typeof(decimal),
  273. oldType: "decimal(18,0)",
  274. oldPrecision: 18,
  275. oldScale: 0,
  276. oldNullable: true,
  277. oldComment: "계좌이체 수수료(원)");
  278. migrationBuilder.AlterColumn<decimal>(
  279. name: "Payment_DanalCardFeeRate",
  280. table: "Config",
  281. type: "decimal(5,2)",
  282. precision: 5,
  283. scale: 2,
  284. nullable: true,
  285. oldClrType: typeof(decimal),
  286. oldType: "decimal(5,2)",
  287. oldPrecision: 5,
  288. oldScale: 2,
  289. oldNullable: true,
  290. oldComment: "신용카드 수수료(%)");
  291. migrationBuilder.AlterColumn<decimal>(
  292. name: "Payment_DanalCardFeeAmount",
  293. table: "Config",
  294. type: "decimal(18,0)",
  295. precision: 18,
  296. nullable: true,
  297. oldClrType: typeof(decimal),
  298. oldType: "decimal(18,0)",
  299. oldPrecision: 18,
  300. oldScale: 0,
  301. oldNullable: true,
  302. oldComment: "신용카드 수수료(원)");
  303. migrationBuilder.AddColumn<decimal>(
  304. name: "Payment_DanalSimpleFeeAmount",
  305. table: "Config",
  306. type: "decimal(18,0)",
  307. precision: 18,
  308. nullable: true);
  309. migrationBuilder.AddColumn<decimal>(
  310. name: "Payment_DanalSimpleFeeRate",
  311. table: "Config",
  312. type: "decimal(5,2)",
  313. precision: 5,
  314. scale: 2,
  315. nullable: true);
  316. }
  317. }
  318. }