56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace KanSan.Base.Migrations
|
|
{
|
|
public partial class PropertyChange : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Position",
|
|
table: "Taetigkeiten");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Infiltation",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "Entfernung",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Infiltration",
|
|
table: "Schaeden",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Entfernung",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Infiltration",
|
|
table: "Schaeden");
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "Position",
|
|
table: "Taetigkeiten",
|
|
type: "numeric",
|
|
nullable: false,
|
|
defaultValue: 0m);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "Infiltation",
|
|
table: "Schaeden",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
}
|
|
}
|