using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb { /// public partial class updatetableDisciplineDisciplinary_DirectorInvestigatesdatestartnullable3 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DisciplineDisciplinaryId", table: "DisciplineReport_Profiles", type: "char(36)", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), collation: "ascii_general_ci"); migrationBuilder.CreateIndex( name: "IX_DisciplineReport_Profiles_DisciplineDisciplinaryId", table: "DisciplineReport_Profiles", column: "DisciplineDisciplinaryId"); migrationBuilder.AddForeignKey( name: "FK_DisciplineReport_Profiles_DisciplineDisciplinarys_Discipline~", table: "DisciplineReport_Profiles", column: "DisciplineDisciplinaryId", principalTable: "DisciplineDisciplinarys", principalColumn: "Id", onDelete: ReferentialAction.Cascade); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_DisciplineReport_Profiles_DisciplineDisciplinarys_Discipline~", table: "DisciplineReport_Profiles"); migrationBuilder.DropIndex( name: "IX_DisciplineReport_Profiles_DisciplineDisciplinaryId", table: "DisciplineReport_Profiles"); migrationBuilder.DropColumn( name: "DisciplineDisciplinaryId", table: "DisciplineReport_Profiles"); } } }