71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|