255 lines
11 KiB
C#
255 lines
11 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
namespace KanSan.Base.Migrations
|
|
{
|
|
public partial class GueteschutzHinzugefügt : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Infiltation",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "RissBruchScherbe",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "SchadstelleFaekalienFrei",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "StutzenEinragend",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "VorbehandeltFraeser",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "VorbehandeltHD",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "VorbehandeltMech",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "WurzelInkrustationAblagerungen",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "BaustellensicherungErforderlich",
|
|
table: "Kanaele",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "GenehmigungErforderlich",
|
|
table: "Kanaele",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "HaltungGespuelt",
|
|
table: "Kanaele",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "RohrleitungInBetrieb",
|
|
table: "Kanaele",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "WasserHaltungDurchgefuehrt",
|
|
table: "Kanaele",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "HutprofilSanierung",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<int>(nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
GuidNr = table.Column<Guid>(nullable: false),
|
|
SchadPositionID = table.Column<int>(nullable: true),
|
|
Wetter = table.Column<int>(nullable: false),
|
|
AussenTemp = table.Column<int>(nullable: false),
|
|
KanalTemp = table.Column<int>(nullable: false),
|
|
Sichtkontrolle = table.Column<bool>(nullable: false),
|
|
Bericht = table.Column<bool>(nullable: false),
|
|
Film = table.Column<bool>(nullable: false),
|
|
Video = table.Column<bool>(nullable: false),
|
|
Dichtheit = table.Column<bool>(nullable: false),
|
|
HarzmaterialHersteller = table.Column<string>(nullable: true),
|
|
HarzMaterialArt = table.Column<string>(nullable: true),
|
|
KompACharge = table.Column<string>(nullable: true),
|
|
KompBCharge = table.Column<string>(nullable: true),
|
|
TraegerKurzliner = table.Column<string>(nullable: true),
|
|
TraegerHersteller = table.Column<string>(nullable: true),
|
|
TraegerCharge = table.Column<string>(nullable: true),
|
|
Flaechengewicht = table.Column<int>(nullable: false),
|
|
Auffaelligkeit = table.Column<bool>(nullable: false),
|
|
FixierungAufPacker = table.Column<bool>(nullable: false),
|
|
MischZeit = table.Column<DateTime>(nullable: false),
|
|
AnpressenPacker = table.Column<DateTime>(nullable: false),
|
|
EntlueftenPacker = table.Column<DateTime>(nullable: false),
|
|
PackerDruckAnfang = table.Column<double>(nullable: false),
|
|
PackerDruckEnde = table.Column<double>(nullable: false),
|
|
RohrDN = table.Column<string>(nullable: true),
|
|
Winkel = table.Column<string>(nullable: true),
|
|
InnenBeschichtung = table.Column<bool>(nullable: false),
|
|
SeitenKanalDruckAnfang = table.Column<double>(nullable: false),
|
|
SeitenKanalDruckEnde = table.Column<double>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_HutprofilSanierung", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_HutprofilSanierung_Schaeden_SchadPositionID",
|
|
column: x => x.SchadPositionID,
|
|
principalTable: "Schaeden",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "KurzlinerSanierung",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<int>(nullable: false)
|
|
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
|
GuidNr = table.Column<Guid>(nullable: false),
|
|
SchadPositionID = table.Column<int>(nullable: true),
|
|
Wetter = table.Column<int>(nullable: false),
|
|
AussenTemp = table.Column<int>(nullable: false),
|
|
KanalTemp = table.Column<int>(nullable: false),
|
|
Sichtkontrolle = table.Column<bool>(nullable: false),
|
|
Bericht = table.Column<bool>(nullable: false),
|
|
Film = table.Column<bool>(nullable: false),
|
|
Video = table.Column<bool>(nullable: false),
|
|
Dichtheit = table.Column<bool>(nullable: false),
|
|
HarzmaterialHersteller = table.Column<string>(nullable: true),
|
|
HarzMaterialArt = table.Column<string>(nullable: true),
|
|
KompACharge = table.Column<string>(nullable: true),
|
|
KompBCharge = table.Column<string>(nullable: true),
|
|
TraegerKurzliner = table.Column<string>(nullable: true),
|
|
TraegerHersteller = table.Column<string>(nullable: true),
|
|
TraegerCharge = table.Column<string>(nullable: true),
|
|
Flaechengewicht = table.Column<int>(nullable: false),
|
|
Auffaelligkeit = table.Column<bool>(nullable: false),
|
|
FixierungAufPacker = table.Column<bool>(nullable: false),
|
|
MischZeit = table.Column<DateTime>(nullable: false),
|
|
AnpressenPacker = table.Column<DateTime>(nullable: false),
|
|
EntlueftenPacker = table.Column<DateTime>(nullable: false),
|
|
PackerDruckAnfang = table.Column<double>(nullable: false),
|
|
PackerDruckEnde = table.Column<double>(nullable: false),
|
|
Lang = table.Column<double>(nullable: false),
|
|
Breit = table.Column<double>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_KurzlinerSanierung", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_KurzlinerSanierung_Schaeden_SchadPositionID",
|
|
column: x => x.SchadPositionID,
|
|
principalTable: "Schaeden",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_HutprofilSanierung_SchadPositionID",
|
|
table: "HutprofilSanierung",
|
|
column: "SchadPositionID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_KurzlinerSanierung_SchadPositionID",
|
|
table: "KurzlinerSanierung",
|
|
column: "SchadPositionID");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "HutprofilSanierung");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "KurzlinerSanierung");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Infiltation",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RissBruchScherbe",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SchadstelleFaekalienFrei",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StutzenEinragend",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VorbehandeltFraeser",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VorbehandeltHD",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "VorbehandeltMech",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WurzelInkrustationAblagerungen",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BaustellensicherungErforderlich",
|
|
table: "Kanaele");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GenehmigungErforderlich",
|
|
table: "Kanaele");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "HaltungGespuelt",
|
|
table: "Kanaele");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RohrleitungInBetrieb",
|
|
table: "Kanaele");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WasserHaltungDurchgefuehrt",
|
|
table: "Kanaele");
|
|
}
|
|
}
|
|
}
|