Model geupdated

This commit is contained in:
HuskyTeufel
2021-10-06 19:52:32 +02:00
parent b48c012c18
commit cae9f38227
21 changed files with 1104 additions and 55 deletions

View File

@@ -0,0 +1,70 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DaSaSo.EntityFramework.Migrations
{
public partial class DeletedPrepartionFromDamage : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PreparationType",
table: "SewerDamages");
migrationBuilder.DropColumn(
name: "CleanedHD",
table: "PipeLiners");
migrationBuilder.DropColumn(
name: "CleanedMechanisch",
table: "PipeLiners");
migrationBuilder.DropColumn(
name: "CleanedRoborter",
table: "PipeLiners");
migrationBuilder.AddColumn<int>(
name: "PreparationType",
table: "PipeLiners",
type: "integer",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PreparationType",
table: "PipeLiners");
migrationBuilder.AddColumn<int>(
name: "PreparationType",
table: "SewerDamages",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "CleanedHD",
table: "PipeLiners",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "CleanedMechanisch",
table: "PipeLiners",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "CleanedRoborter",
table: "PipeLiners",
type: "boolean",
nullable: false,
defaultValue: false);
}
}
}