20240805065600_altrOrderRequest.cs 1.0 KB

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