20260329222402_AddGoalFontFamily.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Persistence.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class AddGoalFontFamily : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<string>(
  12. name: "AmountFontFamily",
  13. table: "DonationGoalConfig",
  14. type: "nvarchar(100)",
  15. maxLength: 100,
  16. nullable: true);
  17. migrationBuilder.AddColumn<string>(
  18. name: "TitleFontFamily",
  19. table: "DonationGoalConfig",
  20. type: "nvarchar(100)",
  21. maxLength: 100,
  22. nullable: true);
  23. }
  24. /// <inheritdoc />
  25. protected override void Down(MigrationBuilder migrationBuilder)
  26. {
  27. migrationBuilder.DropColumn(
  28. name: "AmountFontFamily",
  29. table: "DonationGoalConfig");
  30. migrationBuilder.DropColumn(
  31. name: "TitleFontFamily",
  32. table: "DonationGoalConfig");
  33. }
  34. }
  35. }