20250222152029_a5.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace bitforum.Migrations.DefaultDb
  4. {
  5. /// <inheritdoc />
  6. public partial class a5 : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<short>(
  12. name: "Order",
  13. table: "BoardGroup",
  14. type: "smallint",
  15. nullable: false,
  16. comment: "순서",
  17. oldClrType: typeof(int),
  18. oldType: "int",
  19. oldComment: "순서");
  20. migrationBuilder.AlterColumn<int>(
  21. name: "Boards",
  22. table: "BoardGroup",
  23. type: "int",
  24. nullable: false,
  25. comment: "게시판 수",
  26. oldClrType: typeof(long),
  27. oldType: "bigint",
  28. oldComment: "게시판 수");
  29. migrationBuilder.AlterColumn<short>(
  30. name: "Order",
  31. table: "Board",
  32. type: "smallint",
  33. nullable: false,
  34. comment: "순서",
  35. oldClrType: typeof(int),
  36. oldType: "int",
  37. oldComment: "순서");
  38. }
  39. /// <inheritdoc />
  40. protected override void Down(MigrationBuilder migrationBuilder)
  41. {
  42. migrationBuilder.AlterColumn<int>(
  43. name: "Order",
  44. table: "BoardGroup",
  45. type: "int",
  46. nullable: false,
  47. comment: "순서",
  48. oldClrType: typeof(short),
  49. oldType: "smallint",
  50. oldComment: "순서");
  51. migrationBuilder.AlterColumn<long>(
  52. name: "Boards",
  53. table: "BoardGroup",
  54. type: "bigint",
  55. nullable: false,
  56. comment: "게시판 수",
  57. oldClrType: typeof(int),
  58. oldType: "int",
  59. oldComment: "게시판 수");
  60. migrationBuilder.AlterColumn<int>(
  61. name: "Order",
  62. table: "Board",
  63. type: "int",
  64. nullable: false,
  65. comment: "순서",
  66. oldClrType: typeof(short),
  67. oldType: "smallint",
  68. oldComment: "순서");
  69. }
  70. }
  71. }