using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
///
public partial class SegmentIsLock : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "IsLock",
table: "Segment",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddForeignKey(
name: "FK_Segment_Segmentation_SegmentationId",
table: "Segment",
column: "SegmentationId",
principalTable: "Segmentation",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Segment_Segmentation_SegmentationId",
table: "Segment");
migrationBuilder.DropColumn(
name: "IsLock",
table: "Segment");
}
}
}