20211013034437_10-13-1.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _10131 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "RES",
  10. table: "WCS_STATION523");
  11. migrationBuilder.AlterColumn<long>(
  12. name: "Fault",
  13. table: "WCS_STATION523",
  14. type: "bigint",
  15. nullable: false,
  16. oldClrType: typeof(int),
  17. oldType: "int");
  18. }
  19. protected override void Down(MigrationBuilder migrationBuilder)
  20. {
  21. migrationBuilder.AlterColumn<int>(
  22. name: "Fault",
  23. table: "WCS_STATION523",
  24. type: "int",
  25. nullable: false,
  26. oldClrType: typeof(long),
  27. oldType: "bigint");
  28. migrationBuilder.AddColumn<short>(
  29. name: "RES",
  30. table: "WCS_STATION523",
  31. type: "smallint",
  32. nullable: false,
  33. defaultValue: (short)0);
  34. }
  35. }
  36. }