gehgassi_app/gehGassiApp/gehGassiApp.Data/Migrations/20221103092446_DogWalkerProfileNotAvailableAdded.cs

40 lines
1.2 KiB
C#

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