20210725031256_7-25-1.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class _7251 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.DropTable(
  10. name: "WCS_AGVTask");
  11. }
  12. protected override void Down(MigrationBuilder migrationBuilder)
  13. {
  14. migrationBuilder.CreateTable(
  15. name: "WCS_AGVTask",
  16. columns: table => new
  17. {
  18. ID = table.Column<int>(type: "int", nullable: false)
  19. .Annotation("SqlServer:Identity", "1, 1"),
  20. AGVStatus = table.Column<int>(type: "int", nullable: false),
  21. AGVUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  22. CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
  23. Position = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
  24. Station = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  25. Status = table.Column<int>(type: "int", nullable: false),
  26. TaskType = table.Column<int>(type: "int", nullable: false),
  27. UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
  28. Workshop = table.Column<int>(type: "int", nullable: false)
  29. },
  30. constraints: table =>
  31. {
  32. table.PrimaryKey("PK_WCS_AGVTask", x => x.ID);
  33. });
  34. }
  35. }
  36. }