20260329222402_AddGoalFontFamily.cs 1.0 KB

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