20260523100307_AddGameBigImage.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. migrationBuilder.AddColumn<string>(
  23. name: "BigImage",
  24. table: "Game",
  25. type: "nvarchar(500)",
  26. maxLength: 500,
  27. nullable: true,
  28. comment: "큰 이미지 (상세/배너용)");
  29. }
  30. /// <inheritdoc />
  31. protected override void Down(MigrationBuilder migrationBuilder)
  32. {
  33. migrationBuilder.DropColumn(
  34. name: "BigImage",
  35. table: "Game");
  36. migrationBuilder.AlterColumn<string>(
  37. name: "Thumbnail",
  38. table: "Game",
  39. type: "nvarchar(500)",
  40. maxLength: 500,
  41. nullable: true,
  42. oldClrType: typeof(string),
  43. oldType: "nvarchar(500)",
  44. oldMaxLength: 500,
  45. oldNullable: true,
  46. oldComment: "작은 이미지 (목록 카드용)");
  47. }
  48. }
  49. }