20240626094811_attachContent.cs 800 B

123456789101112131415161718192021222324252627282930
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace MTWorkHR.Infrastructure.Migrations
  4. {
  5. /// <inheritdoc />
  6. public partial class attachContent : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.AddColumn<byte[]>(
  12. name: "Content",
  13. table: "UserAttachments",
  14. type: "varbinary(max)",
  15. nullable: false,
  16. defaultValue: new byte[0]);
  17. }
  18. /// <inheritdoc />
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.DropColumn(
  22. name: "Content",
  23. table: "UserAttachments");
  24. }
  25. }
  26. }