using System; using Microsoft.EntityFrameworkCore.Migrations; namespace WCS.Service.Migrations { public partial class _10151 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WCS_MAPPINGENTRY", columns: table => new { MEP_ID = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), MEP_MAPPINGNO = table.Column(type: "int", nullable: false), MEP_MAPPINGTYPE = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), MEP_MAPPINGCHNAME = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), MEP_ISSTOP = table.Column(type: "bit", nullable: false) }, constraints: table => { table.PrimaryKey("PK_WCS_MAPPINGENTRY", x => x.MEP_ID); }); migrationBuilder.CreateTable( name: "WCS_Users", columns: table => new { USER_NO = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), USER_PWD = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), USER_TEXT = table.Column(type: "varbinary(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_WCS_Users", x => x.USER_NO); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WCS_MAPPINGENTRY"); migrationBuilder.DropTable( name: "WCS_Users"); } } }