20260515083158_AddPaymentConfigExtended.cs 12 KB

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