20220518022317_16.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. using System;
  3. #nullable disable
  4. namespace WCS.Service.Migrations
  5. {
  6. public partial class _16 : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "WCS_TASK_OLD",
  12. columns: table => new
  13. {
  14. ID = table.Column<int>(type: "int", nullable: false),
  15. BARCODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  16. TYPE = table.Column<int>(type: "int", nullable: false),
  17. STATUS = table.Column<int>(type: "int", nullable: false),
  18. ADDRFROM = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  19. ADDRTO = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  20. ADDRNEXT = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  21. TUNNEL = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
  22. FLOOR = table.Column<int>(type: "int", nullable: false),
  23. DEVICE = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  24. SRMSTATION = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  25. CREATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
  26. STARTTIME = table.Column<DateTime>(type: "datetime2", nullable: true),
  27. ENDTIME = table.Column<DateTime>(type: "datetime2", nullable: true),
  28. DOCID = table.Column<int>(type: "int", nullable: false),
  29. PALLETTYPE = table.Column<short>(type: "smallint", nullable: false),
  30. PRODLINE = table.Column<short>(type: "smallint", nullable: false),
  31. FULLQTY = table.Column<short>(type: "smallint", nullable: false),
  32. HEIGHT = table.Column<short>(type: "smallint", nullable: false),
  33. WMSTASK = table.Column<int>(type: "int", nullable: false),
  34. TaskGroupKey = table.Column<string>(type: "nvarchar(max)", nullable: true),
  35. UPLOADED = table.Column<int>(type: "int", nullable: false),
  36. AgvTask = table.Column<int>(type: "int", nullable: false),
  37. Priority = table.Column<int>(type: "int", nullable: false),
  38. ManualRemarks = table.Column<string>(type: "nvarchar(max)", nullable: true),
  39. Length = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
  40. ENABLED = table.Column<bool>(type: "bit", nullable: false),
  41. UPDATEUSER = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  42. UPDATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
  43. VER = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true)
  44. },
  45. constraints: table =>
  46. {
  47. table.PrimaryKey("PK_WCS_TASK_OLD", x => x.ID);
  48. });
  49. }
  50. protected override void Down(MigrationBuilder migrationBuilder)
  51. {
  52. migrationBuilder.DropTable(
  53. name: "WCS_TASK_OLD");
  54. }
  55. }
  56. }