-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
on delete no action for bibleVerseId (#594)
- Loading branch information
1 parent
6418fd2
commit 73f6845
Showing
5 changed files
with
91 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 0 additions & 88 deletions
88
src/Aquifer.Data/Migrations/20241206174813_AddVersificationMappingAndExclusion.cs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...sificationMappingAndExclusion.Designer.cs → ...sificationMappingAndExclusion.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
77 changes: 77 additions & 0 deletions
77
src/Aquifer.Data/Migrations/20241209143920_AddVersificationMappingAndExclusion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Aquifer.Data.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AddVersificationMappingAndExclusion : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddForeignKey( | ||
name: "FK_VersificationExclusions_Bibles_BibleId", | ||
table: "VersificationExclusions", | ||
column: "BibleId", | ||
principalTable: "Bibles", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
|
||
migrationBuilder.AddForeignKey( | ||
name: "FK_VersificationExclusions_Verses_VerseId", | ||
table: "VersificationExclusions", | ||
column: "VerseId", | ||
principalTable: "Verses", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
|
||
migrationBuilder.AddForeignKey( | ||
name: "FK_VersificationMappings_Bibles_BibleId", | ||
table: "VersificationMappings", | ||
column: "BibleId", | ||
principalTable: "Bibles", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
|
||
migrationBuilder.AddForeignKey( | ||
name: "FK_VersificationMappings_Verses_BaseVerseId", | ||
table: "VersificationMappings", | ||
column: "BaseVerseId", | ||
principalTable: "Verses", | ||
principalColumn: "Id", | ||
onDelete: ReferentialAction.Cascade); | ||
|
||
migrationBuilder.AddForeignKey( | ||
name: "FK_VersificationMappings_Verses_BibleVerseId", | ||
table: "VersificationMappings", | ||
column: "BibleVerseId", | ||
principalTable: "Verses", | ||
principalColumn: "Id"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropForeignKey( | ||
name: "FK_VersificationExclusions_Bibles_BibleId", | ||
table: "VersificationExclusions"); | ||
|
||
migrationBuilder.DropForeignKey( | ||
name: "FK_VersificationExclusions_Verses_VerseId", | ||
table: "VersificationExclusions"); | ||
|
||
migrationBuilder.DropForeignKey( | ||
name: "FK_VersificationMappings_Bibles_BibleId", | ||
table: "VersificationMappings"); | ||
|
||
migrationBuilder.DropForeignKey( | ||
name: "FK_VersificationMappings_Verses_BaseVerseId", | ||
table: "VersificationMappings"); | ||
|
||
migrationBuilder.DropForeignKey( | ||
name: "FK_VersificationMappings_Verses_BibleVerseId", | ||
table: "VersificationMappings"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters