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