20210414020032_21041402.cs 932 B

12345678910111213141516171819202122232425262728293031323334
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _21041402 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<string>(
  9. name: "Model",
  10. table: "WCS_PLC",
  11. type: "nvarchar(10)",
  12. maxLength: 10,
  13. nullable: true);
  14. migrationBuilder.AddColumn<int>(
  15. name: "Type",
  16. table: "WCS_PLC",
  17. type: "int",
  18. nullable: true);
  19. }
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.DropColumn(
  23. name: "Model",
  24. table: "WCS_PLC");
  25. migrationBuilder.DropColumn(
  26. name: "Type",
  27. table: "WCS_PLC");
  28. }
  29. }
  30. }