20260618103438_AddProductRequireDonationChannel.cs 885 B

123456789101112131415161718192021222324252627282930
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Migrations.AppDb
  4. {
  5. /// <inheritdoc />
  6. public partial class AddProductRequireDonationChannel : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<bool>(
  12. name: "RequireDonationChannel",
  13. table: "Product",
  14. type: "bit",
  15. nullable: false,
  16. defaultValue: false,
  17. comment: "구매 시 후원 채널 선택 필수 여부");
  18. }
  19. /// <inheritdoc />
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.DropColumn(
  23. name: "RequireDonationChannel",
  24. table: "Product");
  25. }
  26. }
  27. }