20260329200637_AddTemplateFontToAlertConfig.cs 1.5 KB

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