20210708071525_7-8-1.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _781 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "TYPE",
  10. table: "WCS_DEVICE");
  11. migrationBuilder.RenameColumn(
  12. name: "Startnumber1",
  13. table: "WCS_SC521",
  14. newName: "Tunnel");
  15. migrationBuilder.AddColumn<short>(
  16. name: "FinishedACK",
  17. table: "WCS_SC520",
  18. type: "smallint",
  19. nullable: false,
  20. defaultValue: (short)0);
  21. }
  22. protected override void Down(MigrationBuilder migrationBuilder)
  23. {
  24. migrationBuilder.DropColumn(
  25. name: "FinishedACK",
  26. table: "WCS_SC520");
  27. migrationBuilder.RenameColumn(
  28. name: "Tunnel",
  29. table: "WCS_SC521",
  30. newName: "Startnumber1");
  31. migrationBuilder.AddColumn<string>(
  32. name: "TYPE",
  33. table: "WCS_DEVICE",
  34. type: "nvarchar(100)",
  35. maxLength: 100,
  36. nullable: false,
  37. defaultValue: "");
  38. }
  39. }
  40. }