| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 | 
							- using System;
 
- using Microsoft.EntityFrameworkCore.Migrations;
 
- #nullable disable
 
- namespace WCS.Service.Migrations
 
- {
 
-     public partial class _7 : Migration
 
-     {
 
-         protected override void Up(MigrationBuilder migrationBuilder)
 
-         {
 
-             migrationBuilder.AlterColumn<byte[]>(
 
-                 name: "USER_TEXT",
 
-                 table: "WCS_Users",
 
-                 type: "varbinary(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(byte[]),
 
-                 oldType: "varbinary(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TaskGroupKey",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TUNNEL",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(10)",
 
-                 maxLength: 10,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(10)",
 
-                 oldMaxLength: 10);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "SCSTATION",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "DEVICE",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "BARCODE",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(50)",
 
-                 maxLength: 50,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(50)",
 
-                 oldMaxLength: 50);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRTO",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRNEXT",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRFROM",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TUNNEL",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Direction",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Describe",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "DEVICECODE",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Code",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Node",
 
-                 table: "WCS_StatusLog",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)");
 
-             migrationBuilder.AddColumn<string>(
 
-                 name: "msg",
 
-                 table: "WCS_StatusLog",
 
-                 type: "nvarchar(max)",
 
-                 nullable: true);
 
-             migrationBuilder.AddColumn<string>(
 
-                 name: "DEVICE",
 
-                 table: "WCS_EXCEPTION",
 
-                 type: "nvarchar(1000)",
 
-                 maxLength: 1000,
 
-                 nullable: true);
 
-             migrationBuilder.AddColumn<string>(
 
-                 name: "EXCEPTIONTYPE",
 
-                 table: "WCS_EXCEPTION",
 
-                 type: "nvarchar(1000)",
 
-                 maxLength: 1000,
 
-                 nullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Content",
 
-                 table: "WCS_BCR80",
 
-                 type: "nvarchar(130)",
 
-                 maxLength: 130,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(130)",
 
-                 oldMaxLength: 130);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Station",
 
-                 table: "WCS_AGVTask",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "AGVID",
 
-                 table: "WCS_AGVTask",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: true,
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20);
 
-         }
 
-         protected override void Down(MigrationBuilder migrationBuilder)
 
-         {
 
-             migrationBuilder.DropColumn(
 
-                 name: "msg",
 
-                 table: "WCS_StatusLog");
 
-             migrationBuilder.DropColumn(
 
-                 name: "DEVICE",
 
-                 table: "WCS_EXCEPTION");
 
-             migrationBuilder.DropColumn(
 
-                 name: "EXCEPTIONTYPE",
 
-                 table: "WCS_EXCEPTION");
 
-             migrationBuilder.AlterColumn<byte[]>(
 
-                 name: "USER_TEXT",
 
-                 table: "WCS_Users",
 
-                 type: "varbinary(max)",
 
-                 nullable: false,
 
-                 defaultValue: new byte[0],
 
-                 oldClrType: typeof(byte[]),
 
-                 oldType: "varbinary(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TaskGroupKey",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TUNNEL",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(10)",
 
-                 maxLength: 10,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(10)",
 
-                 oldMaxLength: 10,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "SCSTATION",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "DEVICE",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "BARCODE",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(50)",
 
-                 maxLength: 50,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(50)",
 
-                 oldMaxLength: 50,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRTO",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRNEXT",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "ADDRFROM",
 
-                 table: "WCS_TASK",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "TUNNEL",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Direction",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Describe",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "DEVICECODE",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Code",
 
-                 table: "WCS_SystemConfig",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Node",
 
-                 table: "WCS_StatusLog",
 
-                 type: "nvarchar(max)",
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(max)",
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Content",
 
-                 table: "WCS_BCR80",
 
-                 type: "nvarchar(130)",
 
-                 maxLength: 130,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(130)",
 
-                 oldMaxLength: 130,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "Station",
 
-                 table: "WCS_AGVTask",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-             migrationBuilder.AlterColumn<string>(
 
-                 name: "AGVID",
 
-                 table: "WCS_AGVTask",
 
-                 type: "nvarchar(20)",
 
-                 maxLength: 20,
 
-                 nullable: false,
 
-                 defaultValue: "",
 
-                 oldClrType: typeof(string),
 
-                 oldType: "nvarchar(20)",
 
-                 oldMaxLength: 20,
 
-                 oldNullable: true);
 
-         }
 
-     }
 
- }
 
 
  |