20211015091520_10-15-1.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class _10151 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "WCS_MAPPINGENTRY",
  11. columns: table => new
  12. {
  13. MEP_ID = table.Column<int>(type: "int", nullable: false)
  14. .Annotation("SqlServer:Identity", "1, 1"),
  15. MEP_MAPPINGNO = table.Column<int>(type: "int", nullable: false),
  16. MEP_MAPPINGTYPE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  17. MEP_MAPPINGCHNAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  18. MEP_ISSTOP = table.Column<bool>(type: "bit", nullable: false)
  19. },
  20. constraints: table =>
  21. {
  22. table.PrimaryKey("PK_WCS_MAPPINGENTRY", x => x.MEP_ID);
  23. });
  24. migrationBuilder.CreateTable(
  25. name: "WCS_Users",
  26. columns: table => new
  27. {
  28. USER_NO = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  29. USER_PWD = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
  30. USER_TEXT = table.Column<byte[]>(type: "varbinary(max)", nullable: true)
  31. },
  32. constraints: table =>
  33. {
  34. table.PrimaryKey("PK_WCS_Users", x => x.USER_NO);
  35. });
  36. }
  37. protected override void Down(MigrationBuilder migrationBuilder)
  38. {
  39. migrationBuilder.DropTable(
  40. name: "WCS_MAPPINGENTRY");
  41. migrationBuilder.DropTable(
  42. name: "WCS_Users");
  43. }
  44. }
  45. }