20210728010742_7-28-1.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _7281 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.RenameColumn(
  9. name: "WEIGHT",
  10. table: "WCS_STATION521",
  11. newName: "HEIGHT");
  12. migrationBuilder.AddColumn<short>(
  13. name: "HEIGHT",
  14. table: "WCS_TASK",
  15. type: "smallint",
  16. nullable: false,
  17. defaultValue: (short)0);
  18. migrationBuilder.AddColumn<int>(
  19. name: "HEIGHT",
  20. table: "WCS_STATION520",
  21. type: "int",
  22. nullable: false,
  23. defaultValue: 0);
  24. migrationBuilder.AddColumn<byte>(
  25. name: "RES2",
  26. table: "WCS_STATION520",
  27. type: "tinyint",
  28. nullable: false,
  29. defaultValue: (byte)0);
  30. }
  31. protected override void Down(MigrationBuilder migrationBuilder)
  32. {
  33. migrationBuilder.DropColumn(
  34. name: "HEIGHT",
  35. table: "WCS_TASK");
  36. migrationBuilder.DropColumn(
  37. name: "HEIGHT",
  38. table: "WCS_STATION520");
  39. migrationBuilder.DropColumn(
  40. name: "RES2",
  41. table: "WCS_STATION520");
  42. migrationBuilder.RenameColumn(
  43. name: "HEIGHT",
  44. table: "WCS_STATION521",
  45. newName: "WEIGHT");
  46. }
  47. }
  48. }