20210705084431_7-5-4.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace WCS.Service.Migrations
  3. {
  4. public partial class _754 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.DropColumn(
  9. name: "FLAGS",
  10. table: "WCS_STATION520");
  11. migrationBuilder.DropColumn(
  12. name: "WEIGHT",
  13. table: "WCS_STATION520");
  14. migrationBuilder.AlterColumn<bool>(
  15. name: "CONFIRM",
  16. table: "WCS_STATION520",
  17. type: "bit",
  18. nullable: false,
  19. oldClrType: typeof(short),
  20. oldType: "smallint");
  21. migrationBuilder.AddColumn<bool>(
  22. name: "RES",
  23. table: "WCS_STATION520",
  24. type: "bit",
  25. nullable: false,
  26. defaultValue: false);
  27. }
  28. protected override void Down(MigrationBuilder migrationBuilder)
  29. {
  30. migrationBuilder.DropColumn(
  31. name: "RES",
  32. table: "WCS_STATION520");
  33. migrationBuilder.AlterColumn<short>(
  34. name: "CONFIRM",
  35. table: "WCS_STATION520",
  36. type: "smallint",
  37. nullable: false,
  38. oldClrType: typeof(bool),
  39. oldType: "bit");
  40. migrationBuilder.AddColumn<short>(
  41. name: "FLAGS",
  42. table: "WCS_STATION520",
  43. type: "smallint",
  44. nullable: false,
  45. defaultValue: (short)0);
  46. migrationBuilder.AddColumn<short>(
  47. name: "WEIGHT",
  48. table: "WCS_STATION520",
  49. type: "smallint",
  50. nullable: false,
  51. defaultValue: (short)0);
  52. }
  53. }
  54. }