20260523100307_AddGameBigImage.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddGameBigImage : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AlterColumn<string>(
  12. name: "Thumbnail",
  13. table: "Game",
  14. type: "nvarchar(500)",
  15. maxLength: 500,
  16. nullable: true,
  17. comment: "작은 이미지 (목록 카드용)",
  18. oldClrType: typeof(string),
  19. oldType: "nvarchar(500)",
  20. oldMaxLength: 500,
  21. oldNullable: true,
  22. oldComment: "작은 이미지 (목록 카드용)");
  23. migrationBuilder.AddColumn<string>(
  24. name: "BigImage",
  25. table: "Game",
  26. type: "nvarchar(500)",
  27. maxLength: 500,
  28. nullable: true,
  29. comment: "큰 이미지 (상세/배너용)");
  30. }
  31. /// <inheritdoc />
  32. protected override void Down(MigrationBuilder migrationBuilder)
  33. {
  34. migrationBuilder.DropColumn(
  35. name: "BigImage",
  36. table: "Game");
  37. migrationBuilder.AlterColumn<string>(
  38. name: "Thumbnail",
  39. table: "Game",
  40. type: "nvarchar(500)",
  41. maxLength: 500,
  42. nullable: true,
  43. oldClrType: typeof(string),
  44. oldType: "nvarchar(500)",
  45. oldMaxLength: 500,
  46. oldNullable: true,
  47. oldComment: "작은 이미지 (목록 카드용)");
  48. }
  49. }
  50. }