20221028054830_202210281348.cs 1011 B

12345678910111213141516171819202122232425262728293031323334
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace ProductionLineMonitor.Web.Migrations
  3. {
  4. public partial class _202210281348 : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.AddColumn<float>(
  9. name: "PowerConsumption",
  10. table: "MachineOutPutPerHours",
  11. type: "REAL",
  12. nullable: true);
  13. migrationBuilder.AddColumn<bool>(
  14. name: "IsConnected",
  15. table: "Cims",
  16. type: "INTEGER",
  17. nullable: false,
  18. defaultValue: false);
  19. }
  20. protected override void Down(MigrationBuilder migrationBuilder)
  21. {
  22. migrationBuilder.DropColumn(
  23. name: "PowerConsumption",
  24. table: "MachineOutPutPerHours");
  25. migrationBuilder.DropColumn(
  26. name: "IsConnected",
  27. table: "Cims");
  28. }
  29. }
  30. }