20220430065045_12.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class _12 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. //migrationBuilder.RenameColumn(
  10. // name: "Istation521Status",
  11. // table: "WCS_STATION521",
  12. // newName: "Status");
  13. migrationBuilder.AlterColumn<int>(
  14. name: "Position",
  15. table: "WCS_RGV521",
  16. type: "int",
  17. nullable: false,
  18. oldClrType: typeof(float),
  19. oldType: "real");
  20. }
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. //migrationBuilder.RenameColumn(
  24. // name: "Status",
  25. // table: "WCS_STATION521",
  26. // newName: "Istation521Status");
  27. migrationBuilder.AlterColumn<float>(
  28. name: "Position",
  29. table: "WCS_RGV521",
  30. type: "real",
  31. nullable: false,
  32. oldClrType: typeof(int),
  33. oldType: "int");
  34. }
  35. }
  36. }