diff --git a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs similarity index 99% rename from SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs rename to SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs index dc61cfd..176fa85 100644 --- a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs +++ b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs @@ -12,7 +12,7 @@ using SchoolAgainStudyDataBaseImplements; namespace SchoolAgainStudyDataBaseImplements.Migrations { [DbContext(typeof(SchoolDataBase))] - [Migration("20230517172340_NewMigration")] + [Migration("20230517182038_NewMigration")] partial class NewMigration { /// diff --git a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs similarity index 99% rename from SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs rename to SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs index e084841..2f13af5 100644 --- a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs +++ b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs @@ -155,7 +155,7 @@ namespace SchoolAgainStudyDataBaseImplements.Migrations column: x => x.ProductId, principalTable: "Products", principalColumn: "Id", - onDelete: ReferentialAction.Cascade); + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Lessons_Teachers_TeacherId", column: x => x.TeacherId, @@ -218,7 +218,7 @@ namespace SchoolAgainStudyDataBaseImplements.Migrations column: x => x.TaskId, principalTable: "Tasks", principalColumn: "Id", - onDelete: ReferentialAction.Cascade); + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable(