20221103031847_202211031118.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace ProductionLineMonitor.Web.Migrations
  4. {
  5. public partial class _202211031118 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.AddColumn<DateTime>(
  10. name: "DataTime",
  11. table: "MachineProcessPSs",
  12. type: "TEXT",
  13. nullable: false,
  14. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  15. migrationBuilder.AddColumn<DateTime>(
  16. name: "DataTime",
  17. table: "MachineProcessPSEPDs",
  18. type: "TEXT",
  19. nullable: false,
  20. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  21. migrationBuilder.AddColumn<DateTime>(
  22. name: "DataTime",
  23. table: "MachineProcessFOGs",
  24. type: "TEXT",
  25. nullable: false,
  26. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  27. migrationBuilder.AddColumn<DateTime>(
  28. name: "DataTime",
  29. table: "MachineProcessBTs",
  30. type: "TEXT",
  31. nullable: false,
  32. defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
  33. }
  34. protected override void Down(MigrationBuilder migrationBuilder)
  35. {
  36. migrationBuilder.DropColumn(
  37. name: "DataTime",
  38. table: "MachineProcessPSs");
  39. migrationBuilder.DropColumn(
  40. name: "DataTime",
  41. table: "MachineProcessPSEPDs");
  42. migrationBuilder.DropColumn(
  43. name: "DataTime",
  44. table: "MachineProcessFOGs");
  45. migrationBuilder.DropColumn(
  46. name: "DataTime",
  47. table: "MachineProcessBTs");
  48. }
  49. }
  50. }