using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace IRaCIS.Core.Infra.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class FileEnContent : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_ReadingNoneDicomMarkBinding_NoneDicomStudy_NoneDicomMarkId",
                table: "ReadingNoneDicomMarkBinding");

            migrationBuilder.AddColumn<string>(
                name: "FileEnContent",
                table: "UserAgreement",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddForeignKey(
                name: "FK_ReadingNoneDicomMarkBinding_ReadingNoneDicomMark_NoneDicomMarkId",
                table: "ReadingNoneDicomMarkBinding",
                column: "NoneDicomMarkId",
                principalTable: "ReadingNoneDicomMark",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_ReadingNoneDicomMarkBinding_ReadingNoneDicomMark_NoneDicomMarkId",
                table: "ReadingNoneDicomMarkBinding");

            migrationBuilder.DropColumn(
                name: "FileEnContent",
                table: "UserAgreement");

            migrationBuilder.AddForeignKey(
                name: "FK_ReadingNoneDicomMarkBinding_NoneDicomStudy_NoneDicomMarkId",
                table: "ReadingNoneDicomMarkBinding",
                column: "NoneDicomMarkId",
                principalTable: "NoneDicomStudy",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }
    }
}
