20250222132132_a4.cs 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace bitforum.Migrations.DefaultDb
  4. {
  5. /// <inheritdoc />
  6. public partial class a4 : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<bool>(
  12. name: "General_AllowDeleteProtection",
  13. table: "PostMeta",
  14. type: "bit",
  15. nullable: false,
  16. defaultValue: false,
  17. comment: "게시글 보호 기능 (삭제 시)");
  18. migrationBuilder.AddColumn<bool>(
  19. name: "General_AllowUpdateProtection",
  20. table: "PostMeta",
  21. type: "bit",
  22. nullable: false,
  23. defaultValue: false,
  24. comment: "게시글 보호 기능 (수정 시)");
  25. migrationBuilder.AddColumn<int>(
  26. name: "General_DeleteProtectionDays",
  27. table: "PostMeta",
  28. type: "int",
  29. nullable: false,
  30. defaultValue: 0,
  31. comment: "게시글 삭제 금지 기간");
  32. migrationBuilder.AddColumn<bool>(
  33. name: "General_EnableFileDownLog",
  34. table: "PostMeta",
  35. type: "bit",
  36. nullable: false,
  37. defaultValue: false,
  38. comment: "다운로드 기록");
  39. migrationBuilder.AddColumn<bool>(
  40. name: "General_EnablePostUpdateLog",
  41. table: "PostMeta",
  42. type: "bit",
  43. nullable: false,
  44. defaultValue: false,
  45. comment: "게시글 변경 기록");
  46. migrationBuilder.AddColumn<int>(
  47. name: "General_UpdateProtectionDays",
  48. table: "PostMeta",
  49. type: "int",
  50. nullable: false,
  51. defaultValue: 0,
  52. comment: "게시글 수정/삭제 금지 기간");
  53. migrationBuilder.AddColumn<bool>(
  54. name: "List_AllowBlame",
  55. table: "PostMeta",
  56. type: "bit",
  57. nullable: false,
  58. defaultValue: false,
  59. comment: "신고 기능");
  60. migrationBuilder.AddColumn<bool>(
  61. name: "List_AllowBookmark",
  62. table: "PostMeta",
  63. type: "bit",
  64. nullable: false,
  65. defaultValue: false,
  66. comment: "즐겨찾기 기능");
  67. migrationBuilder.AddColumn<bool>(
  68. name: "List_AllowContentLinkTargetBlank",
  69. table: "PostMeta",
  70. type: "bit",
  71. nullable: false,
  72. defaultValue: false,
  73. comment: "전체공지 제외 여부");
  74. migrationBuilder.AddColumn<bool>(
  75. name: "List_AllowDislike",
  76. table: "PostMeta",
  77. type: "bit",
  78. nullable: false,
  79. defaultValue: false,
  80. comment: "비공감 기능");
  81. migrationBuilder.AddColumn<bool>(
  82. name: "List_AllowLike",
  83. table: "PostMeta",
  84. type: "bit",
  85. nullable: false,
  86. defaultValue: false,
  87. comment: "공감 기능");
  88. migrationBuilder.AddColumn<bool>(
  89. name: "List_AllowPostUrlCopy",
  90. table: "PostMeta",
  91. type: "bit",
  92. nullable: false,
  93. defaultValue: false,
  94. comment: "주소 복사 버튼");
  95. migrationBuilder.AddColumn<bool>(
  96. name: "List_AllowPostUrlQrCode",
  97. table: "PostMeta",
  98. type: "bit",
  99. nullable: false,
  100. defaultValue: false,
  101. comment: "글 주소 QR 코드");
  102. migrationBuilder.AddColumn<bool>(
  103. name: "List_AllowPrevNextBotton",
  104. table: "PostMeta",
  105. type: "bit",
  106. nullable: false,
  107. defaultValue: false,
  108. comment: "이전글, 다음글 버튼");
  109. migrationBuilder.AddColumn<bool>(
  110. name: "List_AllowPrint",
  111. table: "PostMeta",
  112. type: "bit",
  113. nullable: false,
  114. defaultValue: false,
  115. comment: "본문 인쇄 기능");
  116. migrationBuilder.AddColumn<bool>(
  117. name: "List_AllowSnsShare",
  118. table: "PostMeta",
  119. type: "bit",
  120. nullable: false,
  121. defaultValue: false,
  122. comment: "SNS 보내기 기능");
  123. migrationBuilder.AddColumn<int>(
  124. name: "List_BlameHideCount",
  125. table: "PostMeta",
  126. type: "int",
  127. nullable: false,
  128. defaultValue: 0,
  129. comment: "신고 시 숨김");
  130. migrationBuilder.AddColumn<bool>(
  131. name: "List_ShowMemberIcon",
  132. table: "PostMeta",
  133. type: "bit",
  134. nullable: false,
  135. defaultValue: false,
  136. comment: "회원 아이콘 공개");
  137. migrationBuilder.AddColumn<bool>(
  138. name: "List_ShowMemberPhoto",
  139. table: "PostMeta",
  140. type: "bit",
  141. nullable: false,
  142. defaultValue: false,
  143. comment: "회원 사진 공개");
  144. migrationBuilder.AddColumn<bool>(
  145. name: "List_ShowMemberRegDate",
  146. table: "PostMeta",
  147. type: "bit",
  148. nullable: false,
  149. defaultValue: false,
  150. comment: "회원 가입일 공개");
  151. migrationBuilder.AddColumn<bool>(
  152. name: "Write_AllowEditor",
  153. table: "PostMeta",
  154. type: "bit",
  155. nullable: false,
  156. defaultValue: false,
  157. comment: "웹 에디터 사용");
  158. migrationBuilder.AddColumn<bool>(
  159. name: "Write_AllowSaveExternalImage",
  160. table: "PostMeta",
  161. type: "bit",
  162. nullable: false,
  163. defaultValue: false,
  164. comment: "외부 이미지 수집");
  165. migrationBuilder.AddColumn<bool>(
  166. name: "Write_AllowSecret",
  167. table: "PostMeta",
  168. type: "bit",
  169. nullable: false,
  170. defaultValue: false,
  171. comment: "비밀글 사용");
  172. migrationBuilder.AddColumn<bool>(
  173. name: "Write_AllowTag",
  174. table: "PostMeta",
  175. type: "bit",
  176. nullable: false,
  177. defaultValue: false,
  178. comment: "Tag 사용");
  179. migrationBuilder.AddColumn<string>(
  180. name: "Write_DefaultContent",
  181. table: "PostMeta",
  182. type: "nvarchar(4000)",
  183. maxLength: 4000,
  184. nullable: true,
  185. comment: "기본 내용");
  186. migrationBuilder.AddColumn<string>(
  187. name: "Write_DefaultSubject",
  188. table: "PostMeta",
  189. type: "nvarchar(255)",
  190. maxLength: 255,
  191. nullable: true,
  192. comment: "기본 제목");
  193. migrationBuilder.AddColumn<bool>(
  194. name: "Write_EnableUploadFile",
  195. table: "PostMeta",
  196. type: "bit",
  197. nullable: false,
  198. defaultValue: false,
  199. comment: "파일 사용");
  200. migrationBuilder.AddColumn<string>(
  201. name: "Write_FooterContent",
  202. table: "PostMeta",
  203. type: "nvarchar(4000)",
  204. maxLength: 4000,
  205. nullable: true,
  206. comment: "작성란 하단 내용");
  207. migrationBuilder.AddColumn<string>(
  208. name: "Write_HeaderContent",
  209. table: "PostMeta",
  210. type: "nvarchar(4000)",
  211. maxLength: 4000,
  212. nullable: true,
  213. comment: "작성란 상단 내용");
  214. migrationBuilder.AddColumn<string>(
  215. name: "Write_UploadFileExtension",
  216. table: "PostMeta",
  217. type: "nvarchar(200)",
  218. maxLength: 200,
  219. nullable: true,
  220. comment: "파일 허용 확장자");
  221. migrationBuilder.AddColumn<int>(
  222. name: "Write_UploadFileMaxSize",
  223. table: "PostMeta",
  224. type: "int",
  225. nullable: false,
  226. defaultValue: 0,
  227. comment: "파일 용량 제한");
  228. migrationBuilder.AddColumn<byte>(
  229. name: "Write_UploadFilesLimit",
  230. table: "PostMeta",
  231. type: "tinyint",
  232. nullable: false,
  233. defaultValue: (byte)0,
  234. comment: "파일 개수 제한");
  235. migrationBuilder.AddColumn<int>(
  236. name: "Exp_CommentWriteExp",
  237. table: "BoardMeta",
  238. type: "int",
  239. nullable: false,
  240. defaultValue: 0,
  241. comment: "댓글 작성");
  242. migrationBuilder.AddColumn<int>(
  243. name: "Exp_CommentWriteExpWithinDays",
  244. table: "BoardMeta",
  245. type: "int",
  246. nullable: false,
  247. defaultValue: 0,
  248. comment: "댓글 작성 기한");
  249. migrationBuilder.AddColumn<int>(
  250. name: "Exp_CommentWriteUndoExp",
  251. table: "BoardMeta",
  252. type: "int",
  253. nullable: false,
  254. defaultValue: 0,
  255. comment: "댓글 작성 취소");
  256. migrationBuilder.AddColumn<bool>(
  257. name: "Exp_EnableExp",
  258. table: "BoardMeta",
  259. type: "bit",
  260. nullable: false,
  261. defaultValue: false,
  262. comment: "경험치 기능");
  263. migrationBuilder.AddColumn<short>(
  264. name: "Exp_FileDownloadExp",
  265. table: "BoardMeta",
  266. type: "smallint",
  267. nullable: false,
  268. defaultValue: (short)0,
  269. comment: "파일 다운로드");
  270. migrationBuilder.AddColumn<int>(
  271. name: "Exp_FileUploadExp",
  272. table: "BoardMeta",
  273. type: "int",
  274. nullable: false,
  275. defaultValue: 0,
  276. comment: "파일 업로드");
  277. migrationBuilder.AddColumn<int>(
  278. name: "Exp_FileUploadExpWithinDays",
  279. table: "BoardMeta",
  280. type: "int",
  281. nullable: false,
  282. defaultValue: 0,
  283. comment: "파일 업로드 기한");
  284. migrationBuilder.AddColumn<int>(
  285. name: "Exp_FileUploadUndoExp",
  286. table: "BoardMeta",
  287. type: "int",
  288. nullable: false,
  289. defaultValue: 0,
  290. comment: "파일 업로드 취소");
  291. migrationBuilder.AddColumn<int>(
  292. name: "Exp_OtherCommentDisLikeExp",
  293. table: "BoardMeta",
  294. type: "int",
  295. nullable: false,
  296. defaultValue: 0,
  297. comment: "댓글 싫어요");
  298. migrationBuilder.AddColumn<int>(
  299. name: "Exp_OtherCommentDisLikeExpWithinDays",
  300. table: "BoardMeta",
  301. type: "int",
  302. nullable: false,
  303. defaultValue: 0,
  304. comment: "댓글 싫어요 기한");
  305. migrationBuilder.AddColumn<int>(
  306. name: "Exp_OtherCommentDisLikeUndoExp",
  307. table: "BoardMeta",
  308. type: "int",
  309. nullable: false,
  310. defaultValue: 0,
  311. comment: "댓글 싫어요 취소");
  312. migrationBuilder.AddColumn<int>(
  313. name: "Exp_OtherCommentLikeExp",
  314. table: "BoardMeta",
  315. type: "int",
  316. nullable: false,
  317. defaultValue: 0,
  318. comment: "댓글 좋아요");
  319. migrationBuilder.AddColumn<int>(
  320. name: "Exp_OtherCommentLikeExpWithinDays",
  321. table: "BoardMeta",
  322. type: "int",
  323. nullable: false,
  324. defaultValue: 0,
  325. comment: "댓글 좋아요 기한");
  326. migrationBuilder.AddColumn<int>(
  327. name: "Exp_OtherCommentLikeUndoExp",
  328. table: "BoardMeta",
  329. type: "int",
  330. nullable: false,
  331. defaultValue: 0,
  332. comment: "댓글 좋아요 취소");
  333. migrationBuilder.AddColumn<int>(
  334. name: "Exp_OtherPostDisLikeExp",
  335. table: "BoardMeta",
  336. type: "int",
  337. nullable: false,
  338. defaultValue: 0,
  339. comment: "게시글 싫어요");
  340. migrationBuilder.AddColumn<int>(
  341. name: "Exp_OtherPostDisLikeExpWithinDays",
  342. table: "BoardMeta",
  343. type: "int",
  344. nullable: false,
  345. defaultValue: 0,
  346. comment: "게시글 싫어요 기한");
  347. migrationBuilder.AddColumn<int>(
  348. name: "Exp_OtherPostDisLikeUndoExp",
  349. table: "BoardMeta",
  350. type: "int",
  351. nullable: false,
  352. defaultValue: 0,
  353. comment: "게시글 싫어요 취소");
  354. migrationBuilder.AddColumn<int>(
  355. name: "Exp_OtherPostLikeExp",
  356. table: "BoardMeta",
  357. type: "int",
  358. nullable: false,
  359. defaultValue: 0,
  360. comment: "게시글 좋아요");
  361. migrationBuilder.AddColumn<int>(
  362. name: "Exp_OtherPostLikeExpWithinDays",
  363. table: "BoardMeta",
  364. type: "int",
  365. nullable: false,
  366. defaultValue: 0,
  367. comment: "게시글 좋아요 기한");
  368. migrationBuilder.AddColumn<int>(
  369. name: "Exp_OtherPostLikeUndoExp",
  370. table: "BoardMeta",
  371. type: "int",
  372. nullable: false,
  373. defaultValue: 0,
  374. comment: "게시글 좋아요 취소");
  375. migrationBuilder.AddColumn<short>(
  376. name: "Exp_OtherPostReadExp",
  377. table: "BoardMeta",
  378. type: "smallint",
  379. nullable: false,
  380. defaultValue: (short)0,
  381. comment: "게시글 읽기");
  382. migrationBuilder.AddColumn<int>(
  383. name: "Exp_OtherPostReadExpWithinDays",
  384. table: "BoardMeta",
  385. type: "int",
  386. nullable: false,
  387. defaultValue: 0,
  388. comment: "게시글 읽기 기한");
  389. migrationBuilder.AddColumn<int>(
  390. name: "Exp_OtherPostReadUndoExp",
  391. table: "BoardMeta",
  392. type: "int",
  393. nullable: false,
  394. defaultValue: 0,
  395. comment: "게시글 읽기 취소");
  396. migrationBuilder.AddColumn<short>(
  397. name: "Exp_OwnCommentDisLikeExp",
  398. table: "BoardMeta",
  399. type: "smallint",
  400. nullable: false,
  401. defaultValue: (short)0,
  402. comment: "내 댓글 싫어요");
  403. migrationBuilder.AddColumn<int>(
  404. name: "Exp_OwnCommentDisLikeExpWithinDays",
  405. table: "BoardMeta",
  406. type: "int",
  407. nullable: false,
  408. defaultValue: 0,
  409. comment: "내 댓글 싫어요 기한");
  410. migrationBuilder.AddColumn<int>(
  411. name: "Exp_OwnCommentDisLikeUndoExp",
  412. table: "BoardMeta",
  413. type: "int",
  414. nullable: false,
  415. defaultValue: 0,
  416. comment: "내 댓글 싫어요 취소");
  417. migrationBuilder.AddColumn<int>(
  418. name: "Exp_OwnCommentLikeExp",
  419. table: "BoardMeta",
  420. type: "int",
  421. nullable: false,
  422. defaultValue: 0,
  423. comment: "내 댓글 좋아요");
  424. migrationBuilder.AddColumn<int>(
  425. name: "Exp_OwnCommentLikeExpWithinDays",
  426. table: "BoardMeta",
  427. type: "int",
  428. nullable: false,
  429. defaultValue: 0,
  430. comment: "내 댓글 좋아요 기한");
  431. migrationBuilder.AddColumn<int>(
  432. name: "Exp_OwnCommentLikeUndoExp",
  433. table: "BoardMeta",
  434. type: "int",
  435. nullable: false,
  436. defaultValue: 0,
  437. comment: "내 댓글 좋아요 취소");
  438. migrationBuilder.AddColumn<short>(
  439. name: "Exp_OwnPostDisLikeExp",
  440. table: "BoardMeta",
  441. type: "smallint",
  442. nullable: false,
  443. defaultValue: (short)0,
  444. comment: "내 게시글 싫어요");
  445. migrationBuilder.AddColumn<int>(
  446. name: "Exp_OwnPostDisLikeExpWithinDays",
  447. table: "BoardMeta",
  448. type: "int",
  449. nullable: false,
  450. defaultValue: 0,
  451. comment: "내 게시글 싫어요 기한");
  452. migrationBuilder.AddColumn<int>(
  453. name: "Exp_OwnPostDisLikeUndoExp",
  454. table: "BoardMeta",
  455. type: "int",
  456. nullable: false,
  457. defaultValue: 0,
  458. comment: "내 게시글 싫어요 취소");
  459. migrationBuilder.AddColumn<int>(
  460. name: "Exp_OwnPostLikeExp",
  461. table: "BoardMeta",
  462. type: "int",
  463. nullable: false,
  464. defaultValue: 0,
  465. comment: "내 게시글 좋아요");
  466. migrationBuilder.AddColumn<int>(
  467. name: "Exp_OwnPostLikeExpWithinDays",
  468. table: "BoardMeta",
  469. type: "int",
  470. nullable: false,
  471. defaultValue: 0,
  472. comment: "내 게시글 좋아요 기한");
  473. migrationBuilder.AddColumn<int>(
  474. name: "Exp_OwnPostLikeUndoExp",
  475. table: "BoardMeta",
  476. type: "int",
  477. nullable: false,
  478. defaultValue: 0,
  479. comment: "내 게시글 좋아요 취소");
  480. migrationBuilder.AddColumn<int>(
  481. name: "Exp_OwnPostReadExp",
  482. table: "BoardMeta",
  483. type: "int",
  484. nullable: false,
  485. defaultValue: 0,
  486. comment: "내 게시글 읽힘");
  487. migrationBuilder.AddColumn<int>(
  488. name: "Exp_OwnPostReadExpWithinDays",
  489. table: "BoardMeta",
  490. type: "int",
  491. nullable: false,
  492. defaultValue: 0,
  493. comment: "내 게시글 읽힘 기한");
  494. migrationBuilder.AddColumn<int>(
  495. name: "Exp_OwnPostReadUndoExp",
  496. table: "BoardMeta",
  497. type: "int",
  498. nullable: false,
  499. defaultValue: 0,
  500. comment: "내 게시글 읽힘 취소");
  501. migrationBuilder.AddColumn<int>(
  502. name: "Exp_PostWriteExp",
  503. table: "BoardMeta",
  504. type: "int",
  505. nullable: false,
  506. defaultValue: 0,
  507. comment: "게시글 작성");
  508. migrationBuilder.AddColumn<int>(
  509. name: "Exp_PostWriteExpWithinDays",
  510. table: "BoardMeta",
  511. type: "int",
  512. nullable: false,
  513. defaultValue: 0,
  514. comment: "게시글 작성 기한");
  515. migrationBuilder.AddColumn<int>(
  516. name: "Exp_PostWriteUndoExp",
  517. table: "BoardMeta",
  518. type: "int",
  519. nullable: false,
  520. defaultValue: 0,
  521. comment: "게시글 작성 취소");
  522. migrationBuilder.AddColumn<bool>(
  523. name: "Exp_ShowExpGuide",
  524. table: "BoardMeta",
  525. type: "bit",
  526. nullable: false,
  527. defaultValue: false,
  528. comment: "경험치 안내");
  529. migrationBuilder.AddColumn<bool>(
  530. name: "List_AlwaysShowWriteButton",
  531. table: "BoardMeta",
  532. type: "bit",
  533. nullable: false,
  534. defaultValue: false,
  535. comment: "글쓰기 버튼 보이기");
  536. migrationBuilder.AddColumn<bool>(
  537. name: "List_ExceptNotice",
  538. table: "BoardMeta",
  539. type: "bit",
  540. nullable: false,
  541. defaultValue: false,
  542. comment: "공지사항 제외 여부");
  543. migrationBuilder.AddColumn<bool>(
  544. name: "List_ExceptSpeaker",
  545. table: "BoardMeta",
  546. type: "bit",
  547. nullable: false,
  548. defaultValue: false,
  549. comment: "전체공지 제외 여부");
  550. migrationBuilder.AddColumn<string>(
  551. name: "List_FooterContent",
  552. table: "BoardMeta",
  553. type: "nvarchar(max)",
  554. nullable: true,
  555. comment: "하단 내용");
  556. migrationBuilder.AddColumn<string>(
  557. name: "List_HeaderContent",
  558. table: "BoardMeta",
  559. type: "nvarchar(max)",
  560. nullable: true,
  561. comment: "상단 내용");
  562. migrationBuilder.AddColumn<bool>(
  563. name: "List_IsHotIcon",
  564. table: "BoardMeta",
  565. type: "bit",
  566. nullable: false,
  567. defaultValue: false,
  568. comment: "HOT 사용 여부");
  569. migrationBuilder.AddColumn<bool>(
  570. name: "List_IsNewIcon",
  571. table: "BoardMeta",
  572. type: "bit",
  573. nullable: false,
  574. defaultValue: false,
  575. comment: "NEW 사용 여부");
  576. migrationBuilder.AddColumn<int>(
  577. name: "List_Layout",
  578. table: "BoardMeta",
  579. type: "int",
  580. nullable: true,
  581. comment: "게시판 종류");
  582. migrationBuilder.AddColumn<int>(
  583. name: "List_OrderBy",
  584. table: "BoardMeta",
  585. type: "int",
  586. nullable: true,
  587. comment: "기본 정렬");
  588. migrationBuilder.AddColumn<byte>(
  589. name: "List_PerPage",
  590. table: "BoardMeta",
  591. type: "tinyint",
  592. nullable: false,
  593. defaultValue: (byte)0,
  594. comment: "목록 표시");
  595. migrationBuilder.AddColumn<bool>(
  596. name: "List_ShowFooterListView",
  597. table: "BoardMeta",
  598. type: "bit",
  599. nullable: false,
  600. defaultValue: false,
  601. comment: "하단 목록 보이기");
  602. migrationBuilder.AddColumn<int>(
  603. name: "Notify_CommentWriteNotify",
  604. table: "BoardMeta",
  605. type: "int",
  606. nullable: true,
  607. comment: "댓글 작성 시");
  608. migrationBuilder.AddColumn<int>(
  609. name: "Notify_PostWriteNotify",
  610. table: "BoardMeta",
  611. type: "int",
  612. nullable: true,
  613. comment: "게시글 작성 시");
  614. migrationBuilder.AddColumn<int>(
  615. name: "Notify_ReplyWriteNotify",
  616. table: "BoardMeta",
  617. type: "int",
  618. nullable: true,
  619. comment: "답글 작성 시");
  620. migrationBuilder.AddColumn<int>(
  621. name: "Permission_BoardAccess",
  622. table: "BoardMeta",
  623. type: "int",
  624. nullable: false,
  625. defaultValue: 0,
  626. comment: "게시판 접근");
  627. migrationBuilder.AddColumn<int>(
  628. name: "Permission_CommentView",
  629. table: "BoardMeta",
  630. type: "int",
  631. nullable: false,
  632. defaultValue: 0,
  633. comment: "댓글 목록");
  634. migrationBuilder.AddColumn<int>(
  635. name: "Permission_CommentWrite",
  636. table: "BoardMeta",
  637. type: "int",
  638. nullable: false,
  639. defaultValue: 0,
  640. comment: "댓글 작성");
  641. migrationBuilder.AddColumn<int>(
  642. name: "Permission_FileDownload",
  643. table: "BoardMeta",
  644. type: "int",
  645. nullable: false,
  646. defaultValue: 0,
  647. comment: "파일 다운로드");
  648. migrationBuilder.AddColumn<int>(
  649. name: "Permission_FileUpload",
  650. table: "BoardMeta",
  651. type: "int",
  652. nullable: false,
  653. defaultValue: 0,
  654. comment: "파일 업로드");
  655. migrationBuilder.AddColumn<int>(
  656. name: "Permission_PostView",
  657. table: "BoardMeta",
  658. type: "int",
  659. nullable: false,
  660. defaultValue: 0,
  661. comment: "글 열람");
  662. migrationBuilder.AddColumn<int>(
  663. name: "Permission_PostWrite",
  664. table: "BoardMeta",
  665. type: "int",
  666. nullable: false,
  667. defaultValue: 0,
  668. comment: "글 작성");
  669. migrationBuilder.AddColumn<int>(
  670. name: "Permission_ReplyWrite",
  671. table: "BoardMeta",
  672. type: "int",
  673. nullable: false,
  674. defaultValue: 0,
  675. comment: "답글 작성");
  676. }
  677. /// <inheritdoc />
  678. protected override void Down(MigrationBuilder migrationBuilder)
  679. {
  680. migrationBuilder.DropColumn(
  681. name: "General_AllowDeleteProtection",
  682. table: "PostMeta");
  683. migrationBuilder.DropColumn(
  684. name: "General_AllowUpdateProtection",
  685. table: "PostMeta");
  686. migrationBuilder.DropColumn(
  687. name: "General_DeleteProtectionDays",
  688. table: "PostMeta");
  689. migrationBuilder.DropColumn(
  690. name: "General_EnableFileDownLog",
  691. table: "PostMeta");
  692. migrationBuilder.DropColumn(
  693. name: "General_EnablePostUpdateLog",
  694. table: "PostMeta");
  695. migrationBuilder.DropColumn(
  696. name: "General_UpdateProtectionDays",
  697. table: "PostMeta");
  698. migrationBuilder.DropColumn(
  699. name: "List_AllowBlame",
  700. table: "PostMeta");
  701. migrationBuilder.DropColumn(
  702. name: "List_AllowBookmark",
  703. table: "PostMeta");
  704. migrationBuilder.DropColumn(
  705. name: "List_AllowContentLinkTargetBlank",
  706. table: "PostMeta");
  707. migrationBuilder.DropColumn(
  708. name: "List_AllowDislike",
  709. table: "PostMeta");
  710. migrationBuilder.DropColumn(
  711. name: "List_AllowLike",
  712. table: "PostMeta");
  713. migrationBuilder.DropColumn(
  714. name: "List_AllowPostUrlCopy",
  715. table: "PostMeta");
  716. migrationBuilder.DropColumn(
  717. name: "List_AllowPostUrlQrCode",
  718. table: "PostMeta");
  719. migrationBuilder.DropColumn(
  720. name: "List_AllowPrevNextBotton",
  721. table: "PostMeta");
  722. migrationBuilder.DropColumn(
  723. name: "List_AllowPrint",
  724. table: "PostMeta");
  725. migrationBuilder.DropColumn(
  726. name: "List_AllowSnsShare",
  727. table: "PostMeta");
  728. migrationBuilder.DropColumn(
  729. name: "List_BlameHideCount",
  730. table: "PostMeta");
  731. migrationBuilder.DropColumn(
  732. name: "List_ShowMemberIcon",
  733. table: "PostMeta");
  734. migrationBuilder.DropColumn(
  735. name: "List_ShowMemberPhoto",
  736. table: "PostMeta");
  737. migrationBuilder.DropColumn(
  738. name: "List_ShowMemberRegDate",
  739. table: "PostMeta");
  740. migrationBuilder.DropColumn(
  741. name: "Write_AllowEditor",
  742. table: "PostMeta");
  743. migrationBuilder.DropColumn(
  744. name: "Write_AllowSaveExternalImage",
  745. table: "PostMeta");
  746. migrationBuilder.DropColumn(
  747. name: "Write_AllowSecret",
  748. table: "PostMeta");
  749. migrationBuilder.DropColumn(
  750. name: "Write_AllowTag",
  751. table: "PostMeta");
  752. migrationBuilder.DropColumn(
  753. name: "Write_DefaultContent",
  754. table: "PostMeta");
  755. migrationBuilder.DropColumn(
  756. name: "Write_DefaultSubject",
  757. table: "PostMeta");
  758. migrationBuilder.DropColumn(
  759. name: "Write_EnableUploadFile",
  760. table: "PostMeta");
  761. migrationBuilder.DropColumn(
  762. name: "Write_FooterContent",
  763. table: "PostMeta");
  764. migrationBuilder.DropColumn(
  765. name: "Write_HeaderContent",
  766. table: "PostMeta");
  767. migrationBuilder.DropColumn(
  768. name: "Write_UploadFileExtension",
  769. table: "PostMeta");
  770. migrationBuilder.DropColumn(
  771. name: "Write_UploadFileMaxSize",
  772. table: "PostMeta");
  773. migrationBuilder.DropColumn(
  774. name: "Write_UploadFilesLimit",
  775. table: "PostMeta");
  776. migrationBuilder.DropColumn(
  777. name: "Exp_CommentWriteExp",
  778. table: "BoardMeta");
  779. migrationBuilder.DropColumn(
  780. name: "Exp_CommentWriteExpWithinDays",
  781. table: "BoardMeta");
  782. migrationBuilder.DropColumn(
  783. name: "Exp_CommentWriteUndoExp",
  784. table: "BoardMeta");
  785. migrationBuilder.DropColumn(
  786. name: "Exp_EnableExp",
  787. table: "BoardMeta");
  788. migrationBuilder.DropColumn(
  789. name: "Exp_FileDownloadExp",
  790. table: "BoardMeta");
  791. migrationBuilder.DropColumn(
  792. name: "Exp_FileUploadExp",
  793. table: "BoardMeta");
  794. migrationBuilder.DropColumn(
  795. name: "Exp_FileUploadExpWithinDays",
  796. table: "BoardMeta");
  797. migrationBuilder.DropColumn(
  798. name: "Exp_FileUploadUndoExp",
  799. table: "BoardMeta");
  800. migrationBuilder.DropColumn(
  801. name: "Exp_OtherCommentDisLikeExp",
  802. table: "BoardMeta");
  803. migrationBuilder.DropColumn(
  804. name: "Exp_OtherCommentDisLikeExpWithinDays",
  805. table: "BoardMeta");
  806. migrationBuilder.DropColumn(
  807. name: "Exp_OtherCommentDisLikeUndoExp",
  808. table: "BoardMeta");
  809. migrationBuilder.DropColumn(
  810. name: "Exp_OtherCommentLikeExp",
  811. table: "BoardMeta");
  812. migrationBuilder.DropColumn(
  813. name: "Exp_OtherCommentLikeExpWithinDays",
  814. table: "BoardMeta");
  815. migrationBuilder.DropColumn(
  816. name: "Exp_OtherCommentLikeUndoExp",
  817. table: "BoardMeta");
  818. migrationBuilder.DropColumn(
  819. name: "Exp_OtherPostDisLikeExp",
  820. table: "BoardMeta");
  821. migrationBuilder.DropColumn(
  822. name: "Exp_OtherPostDisLikeExpWithinDays",
  823. table: "BoardMeta");
  824. migrationBuilder.DropColumn(
  825. name: "Exp_OtherPostDisLikeUndoExp",
  826. table: "BoardMeta");
  827. migrationBuilder.DropColumn(
  828. name: "Exp_OtherPostLikeExp",
  829. table: "BoardMeta");
  830. migrationBuilder.DropColumn(
  831. name: "Exp_OtherPostLikeExpWithinDays",
  832. table: "BoardMeta");
  833. migrationBuilder.DropColumn(
  834. name: "Exp_OtherPostLikeUndoExp",
  835. table: "BoardMeta");
  836. migrationBuilder.DropColumn(
  837. name: "Exp_OtherPostReadExp",
  838. table: "BoardMeta");
  839. migrationBuilder.DropColumn(
  840. name: "Exp_OtherPostReadExpWithinDays",
  841. table: "BoardMeta");
  842. migrationBuilder.DropColumn(
  843. name: "Exp_OtherPostReadUndoExp",
  844. table: "BoardMeta");
  845. migrationBuilder.DropColumn(
  846. name: "Exp_OwnCommentDisLikeExp",
  847. table: "BoardMeta");
  848. migrationBuilder.DropColumn(
  849. name: "Exp_OwnCommentDisLikeExpWithinDays",
  850. table: "BoardMeta");
  851. migrationBuilder.DropColumn(
  852. name: "Exp_OwnCommentDisLikeUndoExp",
  853. table: "BoardMeta");
  854. migrationBuilder.DropColumn(
  855. name: "Exp_OwnCommentLikeExp",
  856. table: "BoardMeta");
  857. migrationBuilder.DropColumn(
  858. name: "Exp_OwnCommentLikeExpWithinDays",
  859. table: "BoardMeta");
  860. migrationBuilder.DropColumn(
  861. name: "Exp_OwnCommentLikeUndoExp",
  862. table: "BoardMeta");
  863. migrationBuilder.DropColumn(
  864. name: "Exp_OwnPostDisLikeExp",
  865. table: "BoardMeta");
  866. migrationBuilder.DropColumn(
  867. name: "Exp_OwnPostDisLikeExpWithinDays",
  868. table: "BoardMeta");
  869. migrationBuilder.DropColumn(
  870. name: "Exp_OwnPostDisLikeUndoExp",
  871. table: "BoardMeta");
  872. migrationBuilder.DropColumn(
  873. name: "Exp_OwnPostLikeExp",
  874. table: "BoardMeta");
  875. migrationBuilder.DropColumn(
  876. name: "Exp_OwnPostLikeExpWithinDays",
  877. table: "BoardMeta");
  878. migrationBuilder.DropColumn(
  879. name: "Exp_OwnPostLikeUndoExp",
  880. table: "BoardMeta");
  881. migrationBuilder.DropColumn(
  882. name: "Exp_OwnPostReadExp",
  883. table: "BoardMeta");
  884. migrationBuilder.DropColumn(
  885. name: "Exp_OwnPostReadExpWithinDays",
  886. table: "BoardMeta");
  887. migrationBuilder.DropColumn(
  888. name: "Exp_OwnPostReadUndoExp",
  889. table: "BoardMeta");
  890. migrationBuilder.DropColumn(
  891. name: "Exp_PostWriteExp",
  892. table: "BoardMeta");
  893. migrationBuilder.DropColumn(
  894. name: "Exp_PostWriteExpWithinDays",
  895. table: "BoardMeta");
  896. migrationBuilder.DropColumn(
  897. name: "Exp_PostWriteUndoExp",
  898. table: "BoardMeta");
  899. migrationBuilder.DropColumn(
  900. name: "Exp_ShowExpGuide",
  901. table: "BoardMeta");
  902. migrationBuilder.DropColumn(
  903. name: "List_AlwaysShowWriteButton",
  904. table: "BoardMeta");
  905. migrationBuilder.DropColumn(
  906. name: "List_ExceptNotice",
  907. table: "BoardMeta");
  908. migrationBuilder.DropColumn(
  909. name: "List_ExceptSpeaker",
  910. table: "BoardMeta");
  911. migrationBuilder.DropColumn(
  912. name: "List_FooterContent",
  913. table: "BoardMeta");
  914. migrationBuilder.DropColumn(
  915. name: "List_HeaderContent",
  916. table: "BoardMeta");
  917. migrationBuilder.DropColumn(
  918. name: "List_IsHotIcon",
  919. table: "BoardMeta");
  920. migrationBuilder.DropColumn(
  921. name: "List_IsNewIcon",
  922. table: "BoardMeta");
  923. migrationBuilder.DropColumn(
  924. name: "List_Layout",
  925. table: "BoardMeta");
  926. migrationBuilder.DropColumn(
  927. name: "List_OrderBy",
  928. table: "BoardMeta");
  929. migrationBuilder.DropColumn(
  930. name: "List_PerPage",
  931. table: "BoardMeta");
  932. migrationBuilder.DropColumn(
  933. name: "List_ShowFooterListView",
  934. table: "BoardMeta");
  935. migrationBuilder.DropColumn(
  936. name: "Notify_CommentWriteNotify",
  937. table: "BoardMeta");
  938. migrationBuilder.DropColumn(
  939. name: "Notify_PostWriteNotify",
  940. table: "BoardMeta");
  941. migrationBuilder.DropColumn(
  942. name: "Notify_ReplyWriteNotify",
  943. table: "BoardMeta");
  944. migrationBuilder.DropColumn(
  945. name: "Permission_BoardAccess",
  946. table: "BoardMeta");
  947. migrationBuilder.DropColumn(
  948. name: "Permission_CommentView",
  949. table: "BoardMeta");
  950. migrationBuilder.DropColumn(
  951. name: "Permission_CommentWrite",
  952. table: "BoardMeta");
  953. migrationBuilder.DropColumn(
  954. name: "Permission_FileDownload",
  955. table: "BoardMeta");
  956. migrationBuilder.DropColumn(
  957. name: "Permission_FileUpload",
  958. table: "BoardMeta");
  959. migrationBuilder.DropColumn(
  960. name: "Permission_PostView",
  961. table: "BoardMeta");
  962. migrationBuilder.DropColumn(
  963. name: "Permission_PostWrite",
  964. table: "BoardMeta");
  965. migrationBuilder.DropColumn(
  966. name: "Permission_ReplyWrite",
  967. table: "BoardMeta");
  968. }
  969. }
  970. }