12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- MEP_MAPPINGNO = table.Column<int>(type: "int", nullable: false),
- MEP_MAPPINGTYPE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
- MEP_MAPPINGCHNAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
- MEP_ISSTOP = table.Column<bool>(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<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- USER_PWD = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
- USER_TEXT = table.Column<byte[]>(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");
- }
- }
- }
|