12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _9284 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "WCS_STATION521");
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "WCS_STATION521",
- columns: table => new
- {
- ID = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- BCR_NOREAD = table.Column<bool>(type: "bit", nullable: false),
- B_OUTSIDE = table.Column<bool>(type: "bit", nullable: false),
- DEVICECODE = table.Column<string>(type: "nvarchar(50)", nullable: true),
- ENABLED = table.Column<bool>(type: "bit", nullable: false),
- FRAME = table.Column<DateTime>(type: "datetime2", nullable: false),
- F_OUTSIDE = table.Column<bool>(type: "bit", nullable: false),
- GOODSCODE = table.Column<int>(type: "int", nullable: false),
- GOODSEND = table.Column<short>(type: "smallint", nullable: false),
- GOODSSIZE = table.Column<short>(type: "smallint", nullable: false),
- GOODSSTART = table.Column<short>(type: "smallint", nullable: false),
- GOODSTYPE = table.Column<short>(type: "smallint", nullable: false),
- GOODS_ERR = table.Column<bool>(type: "bit", nullable: false),
- H_OUTSIDE = table.Column<bool>(type: "bit", nullable: false),
- ISLAST = table.Column<bool>(type: "bit", nullable: false),
- L_OUTSIDE = table.Column<bool>(type: "bit", nullable: false),
- OVERLOAD = table.Column<bool>(type: "bit", nullable: false),
- PH_STATUS = table.Column<bool>(type: "bit", nullable: false),
- PH_STATUS2 = table.Column<bool>(type: "bit", nullable: false),
- REQUEST = table.Column<bool>(type: "bit", nullable: false),
- RES = table.Column<bool>(type: "bit", nullable: false),
- RES1 = table.Column<bool>(type: "bit", nullable: false),
- RES2 = table.Column<bool>(type: "bit", nullable: false),
- RES4 = table.Column<bool>(type: "bit", nullable: false),
- RES5 = table.Column<bool>(type: "bit", nullable: false),
- R_OUTSIDE = table.Column<bool>(type: "bit", nullable: false),
- TASKNUM = table.Column<int>(type: "int", nullable: false),
- UPDATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
- UPDATEUSER = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
- VER = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true),
- WCSVERSION = table.Column<int>(type: "int", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WCS_STATION521", x => x.ID);
- table.ForeignKey(
- name: "FK_WCS_STATION521_WCS_DEVICE_DEVICECODE",
- column: x => x.DEVICECODE,
- principalTable: "WCS_DEVICE",
- principalColumn: "CODE",
- onDelete: ReferentialAction.Restrict);
- });
- migrationBuilder.CreateIndex(
- name: "IX_WCS_STATION521_DEVICECODE",
- table: "WCS_STATION521",
- column: "DEVICECODE");
- }
- }
- }
|