20260518062249_RemoveConfigHasDefaultValueSentinels.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class RemoveConfigHasDefaultValueSentinels : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<bool>(
  12. name: "Payment_IsVirtualAccountEnabled",
  13. table: "Config",
  14. type: "bit",
  15. nullable: false,
  16. comment: "가상계좌 사용 여부",
  17. oldClrType: typeof(bool),
  18. oldType: "bit",
  19. oldDefaultValue: false,
  20. oldComment: "가상계좌 사용 여부");
  21. migrationBuilder.AlterColumn<bool>(
  22. name: "Payment_IsTransferEnabled",
  23. table: "Config",
  24. type: "bit",
  25. nullable: false,
  26. comment: "계좌이체 사용 여부",
  27. oldClrType: typeof(bool),
  28. oldType: "bit",
  29. oldDefaultValue: false,
  30. oldComment: "계좌이체 사용 여부");
  31. migrationBuilder.AlterColumn<bool>(
  32. name: "Payment_IsNaverPayEnabled",
  33. table: "Config",
  34. type: "bit",
  35. nullable: false,
  36. comment: "네이버페이 사용 여부",
  37. oldClrType: typeof(bool),
  38. oldType: "bit",
  39. oldDefaultValue: false,
  40. oldComment: "네이버페이 사용 여부");
  41. migrationBuilder.AlterColumn<bool>(
  42. name: "Payment_IsMobileEnabled",
  43. table: "Config",
  44. type: "bit",
  45. nullable: false,
  46. comment: "휴대폰 사용 여부",
  47. oldClrType: typeof(bool),
  48. oldType: "bit",
  49. oldDefaultValue: false,
  50. oldComment: "휴대폰 사용 여부");
  51. migrationBuilder.AlterColumn<bool>(
  52. name: "Payment_IsKakaoPayEnabled",
  53. table: "Config",
  54. type: "bit",
  55. nullable: false,
  56. comment: "카카오페이 사용 여부",
  57. oldClrType: typeof(bool),
  58. oldType: "bit",
  59. oldDefaultValue: false,
  60. oldComment: "카카오페이 사용 여부");
  61. migrationBuilder.AlterColumn<bool>(
  62. name: "Payment_IsCardEnabled",
  63. table: "Config",
  64. type: "bit",
  65. nullable: false,
  66. comment: "신용카드 사용 여부",
  67. oldClrType: typeof(bool),
  68. oldType: "bit",
  69. oldDefaultValue: false,
  70. oldComment: "신용카드 사용 여부");
  71. migrationBuilder.AlterColumn<bool>(
  72. name: "ChatExp_UxShowMyXpBadge",
  73. table: "Config",
  74. type: "bit",
  75. nullable: false,
  76. comment: "내 XP 뱃지 노출",
  77. oldClrType: typeof(bool),
  78. oldType: "bit",
  79. oldDefaultValue: true,
  80. oldComment: "내 XP 뱃지 노출");
  81. migrationBuilder.AlterColumn<bool>(
  82. name: "ChatExp_UxShowLeaderboard",
  83. table: "Config",
  84. type: "bit",
  85. nullable: false,
  86. comment: "watch에서 리더보드 노출",
  87. oldClrType: typeof(bool),
  88. oldType: "bit",
  89. oldDefaultValue: true,
  90. oldComment: "watch에서 리더보드 노출");
  91. migrationBuilder.AlterColumn<bool>(
  92. name: "Attendance_UseStreakBonus",
  93. table: "Config",
  94. type: "bit",
  95. nullable: false,
  96. comment: "연속 출석 가중치 사용",
  97. oldClrType: typeof(bool),
  98. oldType: "bit",
  99. oldDefaultValue: false,
  100. oldComment: "연속 출석 가중치 사용");
  101. migrationBuilder.AlterColumn<bool>(
  102. name: "Attendance_UseRankBonus",
  103. table: "Config",
  104. type: "bit",
  105. nullable: false,
  106. comment: "순위 보상 사용",
  107. oldClrType: typeof(bool),
  108. oldType: "bit",
  109. oldDefaultValue: false,
  110. oldComment: "순위 보상 사용");
  111. migrationBuilder.AlterColumn<int>(
  112. name: "Attendance_StreakBonusPointPerDay",
  113. table: "Config",
  114. type: "int",
  115. nullable: false,
  116. comment: "1일당 추가 포인트",
  117. oldClrType: typeof(int),
  118. oldType: "int",
  119. oldDefaultValue: 0,
  120. oldComment: "1일당 추가 포인트");
  121. migrationBuilder.AlterColumn<int>(
  122. name: "Attendance_StreakBonusPerDay",
  123. table: "Config",
  124. type: "int",
  125. nullable: false,
  126. comment: "1일당 추가 경험치",
  127. oldClrType: typeof(int),
  128. oldType: "int",
  129. oldDefaultValue: 0,
  130. oldComment: "1일당 추가 경험치");
  131. migrationBuilder.AlterColumn<int>(
  132. name: "Attendance_StreakBonusMaxDays",
  133. table: "Config",
  134. type: "int",
  135. nullable: false,
  136. comment: "가중치 최대 적용 일수",
  137. oldClrType: typeof(int),
  138. oldType: "int",
  139. oldDefaultValue: 0,
  140. oldComment: "가중치 최대 적용 일수");
  141. migrationBuilder.AlterColumn<bool>(
  142. name: "Attendance_IsEnabled",
  143. table: "Config",
  144. type: "bit",
  145. nullable: false,
  146. comment: "출석 기능 활성화",
  147. oldClrType: typeof(bool),
  148. oldType: "bit",
  149. oldDefaultValue: false,
  150. oldComment: "출석 기능 활성화");
  151. migrationBuilder.AlterColumn<int>(
  152. name: "Attendance_BasePoint",
  153. table: "Config",
  154. type: "int",
  155. nullable: false,
  156. comment: "기본 포인트",
  157. oldClrType: typeof(int),
  158. oldType: "int",
  159. oldDefaultValue: 0,
  160. oldComment: "기본 포인트");
  161. migrationBuilder.AlterColumn<int>(
  162. name: "Attendance_BaseExp",
  163. table: "Config",
  164. type: "int",
  165. nullable: false,
  166. comment: "기본 경험치",
  167. oldClrType: typeof(int),
  168. oldType: "int",
  169. oldDefaultValue: 0,
  170. oldComment: "기본 경험치");
  171. }
  172. /// <inheritdoc />
  173. protected override void Down(MigrationBuilder migrationBuilder)
  174. {
  175. migrationBuilder.AlterColumn<bool>(
  176. name: "Payment_IsVirtualAccountEnabled",
  177. table: "Config",
  178. type: "bit",
  179. nullable: false,
  180. defaultValue: false,
  181. comment: "가상계좌 사용 여부",
  182. oldClrType: typeof(bool),
  183. oldType: "bit",
  184. oldComment: "가상계좌 사용 여부");
  185. migrationBuilder.AlterColumn<bool>(
  186. name: "Payment_IsTransferEnabled",
  187. table: "Config",
  188. type: "bit",
  189. nullable: false,
  190. defaultValue: false,
  191. comment: "계좌이체 사용 여부",
  192. oldClrType: typeof(bool),
  193. oldType: "bit",
  194. oldComment: "계좌이체 사용 여부");
  195. migrationBuilder.AlterColumn<bool>(
  196. name: "Payment_IsNaverPayEnabled",
  197. table: "Config",
  198. type: "bit",
  199. nullable: false,
  200. defaultValue: false,
  201. comment: "네이버페이 사용 여부",
  202. oldClrType: typeof(bool),
  203. oldType: "bit",
  204. oldComment: "네이버페이 사용 여부");
  205. migrationBuilder.AlterColumn<bool>(
  206. name: "Payment_IsMobileEnabled",
  207. table: "Config",
  208. type: "bit",
  209. nullable: false,
  210. defaultValue: false,
  211. comment: "휴대폰 사용 여부",
  212. oldClrType: typeof(bool),
  213. oldType: "bit",
  214. oldComment: "휴대폰 사용 여부");
  215. migrationBuilder.AlterColumn<bool>(
  216. name: "Payment_IsKakaoPayEnabled",
  217. table: "Config",
  218. type: "bit",
  219. nullable: false,
  220. defaultValue: false,
  221. comment: "카카오페이 사용 여부",
  222. oldClrType: typeof(bool),
  223. oldType: "bit",
  224. oldComment: "카카오페이 사용 여부");
  225. migrationBuilder.AlterColumn<bool>(
  226. name: "Payment_IsCardEnabled",
  227. table: "Config",
  228. type: "bit",
  229. nullable: false,
  230. defaultValue: false,
  231. comment: "신용카드 사용 여부",
  232. oldClrType: typeof(bool),
  233. oldType: "bit",
  234. oldComment: "신용카드 사용 여부");
  235. migrationBuilder.AlterColumn<bool>(
  236. name: "ChatExp_UxShowMyXpBadge",
  237. table: "Config",
  238. type: "bit",
  239. nullable: false,
  240. defaultValue: true,
  241. comment: "내 XP 뱃지 노출",
  242. oldClrType: typeof(bool),
  243. oldType: "bit",
  244. oldComment: "내 XP 뱃지 노출");
  245. migrationBuilder.AlterColumn<bool>(
  246. name: "ChatExp_UxShowLeaderboard",
  247. table: "Config",
  248. type: "bit",
  249. nullable: false,
  250. defaultValue: true,
  251. comment: "watch에서 리더보드 노출",
  252. oldClrType: typeof(bool),
  253. oldType: "bit",
  254. oldComment: "watch에서 리더보드 노출");
  255. migrationBuilder.AlterColumn<bool>(
  256. name: "Attendance_UseStreakBonus",
  257. table: "Config",
  258. type: "bit",
  259. nullable: false,
  260. defaultValue: false,
  261. comment: "연속 출석 가중치 사용",
  262. oldClrType: typeof(bool),
  263. oldType: "bit",
  264. oldComment: "연속 출석 가중치 사용");
  265. migrationBuilder.AlterColumn<bool>(
  266. name: "Attendance_UseRankBonus",
  267. table: "Config",
  268. type: "bit",
  269. nullable: false,
  270. defaultValue: false,
  271. comment: "순위 보상 사용",
  272. oldClrType: typeof(bool),
  273. oldType: "bit",
  274. oldComment: "순위 보상 사용");
  275. migrationBuilder.AlterColumn<int>(
  276. name: "Attendance_StreakBonusPointPerDay",
  277. table: "Config",
  278. type: "int",
  279. nullable: false,
  280. defaultValue: 0,
  281. comment: "1일당 추가 포인트",
  282. oldClrType: typeof(int),
  283. oldType: "int",
  284. oldComment: "1일당 추가 포인트");
  285. migrationBuilder.AlterColumn<int>(
  286. name: "Attendance_StreakBonusPerDay",
  287. table: "Config",
  288. type: "int",
  289. nullable: false,
  290. defaultValue: 0,
  291. comment: "1일당 추가 경험치",
  292. oldClrType: typeof(int),
  293. oldType: "int",
  294. oldComment: "1일당 추가 경험치");
  295. migrationBuilder.AlterColumn<int>(
  296. name: "Attendance_StreakBonusMaxDays",
  297. table: "Config",
  298. type: "int",
  299. nullable: false,
  300. defaultValue: 0,
  301. comment: "가중치 최대 적용 일수",
  302. oldClrType: typeof(int),
  303. oldType: "int",
  304. oldComment: "가중치 최대 적용 일수");
  305. migrationBuilder.AlterColumn<bool>(
  306. name: "Attendance_IsEnabled",
  307. table: "Config",
  308. type: "bit",
  309. nullable: false,
  310. defaultValue: false,
  311. comment: "출석 기능 활성화",
  312. oldClrType: typeof(bool),
  313. oldType: "bit",
  314. oldComment: "출석 기능 활성화");
  315. migrationBuilder.AlterColumn<int>(
  316. name: "Attendance_BasePoint",
  317. table: "Config",
  318. type: "int",
  319. nullable: false,
  320. defaultValue: 0,
  321. comment: "기본 포인트",
  322. oldClrType: typeof(int),
  323. oldType: "int",
  324. oldComment: "기본 포인트");
  325. migrationBuilder.AlterColumn<int>(
  326. name: "Attendance_BaseExp",
  327. table: "Config",
  328. type: "int",
  329. nullable: false,
  330. defaultValue: 0,
  331. comment: "기본 경험치",
  332. oldClrType: typeof(int),
  333. oldType: "int",
  334. oldComment: "기본 경험치");
  335. }
  336. }
  337. }