27 lines
725 B
C#
27 lines
725 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ThAmCo.Events.Data.Migrations
|
|
{
|
|
public partial class AddSoftDeleteEvent : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDeleted",
|
|
schema: "thamco.events",
|
|
table: "Events",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDeleted",
|
|
schema: "thamco.events",
|
|
table: "Events");
|
|
}
|
|
}
|
|
}
|