gehgassi_app/gehGassiApp/gehGassiApp.Data/Migrations/20221031095941_WalkCompletedInfoAdded.cs

40 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassiApp.Data.Migrations
{
public partial class WalkCompletedInfoAdded : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "CompletedInfo",
table: "Walks",
type: "TEXT",
maxLength: 500,
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "Defactation",
table: "Walks",
type: "INTEGER",
nullable: false,
defaultValue: false);
System.Diagnostics.Debug.WriteLine($"Migration WalkCompletedInfoAdded done");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CompletedInfo",
table: "Walks");
migrationBuilder.DropColumn(
name: "Defactation",
table: "Walks");
}
}
}