20250225085631_altrOvertime.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 altrOvertime : Migration
  7. {
  8. /// <inheritdoc />
  9. protected override void Up(MigrationBuilder migrationBuilder)
  10. {
  11. migrationBuilder.DropColumn(
  12. name: "EndTime",
  13. table: "OrderRequests");
  14. migrationBuilder.DropColumn(
  15. name: "StartTime",
  16. table: "OrderRequests");
  17. }
  18. /// <inheritdoc />
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AddColumn<string>(
  22. name: "EndTime",
  23. table: "OrderRequests",
  24. type: "nvarchar(max)",
  25. nullable: true);
  26. migrationBuilder.AddColumn<string>(
  27. name: "StartTime",
  28. table: "OrderRequests",
  29. type: "nvarchar(max)",
  30. nullable: true);
  31. }
  32. }
  33. }