20260329200637_AddTemplateFontToAlertConfig.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Infrastructure.Persistence.Migrations;
  4. /// <inheritdoc />
  5. public partial class AddTemplateFontToAlertConfig : Migration
  6. {
  7. /// <inheritdoc />
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.AddColumn<string>(
  11. name: "TemplateFontColor",
  12. table: "DonationAlertConfig",
  13. type: "nvarchar(max)",
  14. nullable: false,
  15. defaultValue: "");
  16. migrationBuilder.AddColumn<string>(
  17. name: "TemplateFontFamily",
  18. table: "DonationAlertConfig",
  19. type: "nvarchar(max)",
  20. nullable: true);
  21. migrationBuilder.AddColumn<int>(
  22. name: "TemplateFontSize",
  23. table: "DonationAlertConfig",
  24. type: "int",
  25. nullable: false,
  26. defaultValue: 0);
  27. }
  28. /// <inheritdoc />
  29. protected override void Down(MigrationBuilder migrationBuilder)
  30. {
  31. migrationBuilder.DropColumn(
  32. name: "TemplateFontColor",
  33. table: "DonationAlertConfig");
  34. migrationBuilder.DropColumn(
  35. name: "TemplateFontFamily",
  36. table: "DonationAlertConfig");
  37. migrationBuilder.DropColumn(
  38. name: "TemplateFontSize",
  39. table: "DonationAlertConfig");
  40. }
  41. }