Merge branch 'main' of https://github.com/ganjoor/GanjoorService
This commit is contained in:
commit
28d8216954
4508
RMuseum/Migrations/20230327140117_Task373Fields.Designer.cs
generated
Normal file
4508
RMuseum/Migrations/20230327140117_Task373Fields.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
214
RMuseum/Migrations/20230327140117_Task373Fields.cs
Normal file
214
RMuseum/Migrations/20230327140117_Task373Fields.cs
Normal file
@ -0,0 +1,214 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Task373Fields : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CoupletSummary",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LanguageId",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LanguageReviewResult",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OriginalCoupletSummary",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "OriginalLanguageId",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SummaryReviewResult",
|
||||
table: "GanjoorVerseVOrderText",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CoupletSummary",
|
||||
table: "GanjoorVerses",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "LanguageId",
|
||||
table: "GanjoorVerses",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "HideMyName",
|
||||
table: "GanjoorPoemSectionCorrections",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "OriginalPoemFormat",
|
||||
table: "GanjoorPoemSectionCorrections",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PoemFormat",
|
||||
table: "GanjoorPoemSectionCorrections",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "PoemFormatReviewResult",
|
||||
table: "GanjoorPoemSectionCorrections",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PoemSummary",
|
||||
table: "GanjoorPoems",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "HideMyName",
|
||||
table: "GanjoorPoemCorrections",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OriginalPoemSummary",
|
||||
table: "GanjoorPoemCorrections",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PoemSummary",
|
||||
table: "GanjoorPoemCorrections",
|
||||
type: "nvarchar(max)",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SummaryReviewResult",
|
||||
table: "GanjoorPoemCorrections",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GanjoorVerses_LanguageId",
|
||||
table: "GanjoorVerses",
|
||||
column: "LanguageId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_GanjoorVerses_GanjoorLanguages_LanguageId",
|
||||
table: "GanjoorVerses",
|
||||
column: "LanguageId",
|
||||
principalTable: "GanjoorLanguages",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_GanjoorVerses_GanjoorLanguages_LanguageId",
|
||||
table: "GanjoorVerses");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_GanjoorVerses_LanguageId",
|
||||
table: "GanjoorVerses");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CoupletSummary",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LanguageId",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LanguageReviewResult",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OriginalCoupletSummary",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OriginalLanguageId",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SummaryReviewResult",
|
||||
table: "GanjoorVerseVOrderText");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CoupletSummary",
|
||||
table: "GanjoorVerses");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LanguageId",
|
||||
table: "GanjoorVerses");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HideMyName",
|
||||
table: "GanjoorPoemSectionCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OriginalPoemFormat",
|
||||
table: "GanjoorPoemSectionCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PoemFormat",
|
||||
table: "GanjoorPoemSectionCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PoemFormatReviewResult",
|
||||
table: "GanjoorPoemSectionCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PoemSummary",
|
||||
table: "GanjoorPoems");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "HideMyName",
|
||||
table: "GanjoorPoemCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OriginalPoemSummary",
|
||||
table: "GanjoorPoemCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PoemSummary",
|
||||
table: "GanjoorPoemCorrections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SummaryReviewResult",
|
||||
table: "GanjoorPoemCorrections");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1151,6 +1151,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<string>("PlainText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PoemSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<bool>("Published")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -1199,6 +1202,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("HideMyName")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1211,6 +1217,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<string>("OriginalLanguage")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("OriginalPoemSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("OriginalRhymeLetters")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1232,6 +1241,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PoemSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Result")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -1277,6 +1289,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("RhythmResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("SummaryReviewResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1462,6 +1477,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<DateTime>("Date")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("HideMyName")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("Language")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1474,6 +1492,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<string>("OriginalLanguage")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int?>("OriginalPoemFormat")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("OriginalRhymeLetters")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1483,6 +1504,12 @@ namespace RMuseum.Migrations
|
||||
b.Property<string>("OriginalRhythm2")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int?>("PoemFormat")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("PoemFormatReviewResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("ReviewDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
@ -1795,6 +1822,12 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("CoupletIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CoupletSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int?>("LanguageId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -1821,6 +1854,8 @@ namespace RMuseum.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LanguageId");
|
||||
|
||||
b.HasIndex("PoemId");
|
||||
|
||||
b.HasIndex("PoemId", "CoupletIndex");
|
||||
@ -1901,9 +1936,18 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("CoupletIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("CoupletSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int?>("GanjoorPoemCorrectionId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("LanguageId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("LanguageReviewResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("MarkForDelete")
|
||||
.HasColumnType("bit");
|
||||
|
||||
@ -1916,6 +1960,12 @@ namespace RMuseum.Migrations
|
||||
b.Property<int>("NewVerseResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("OriginalCoupletSummary")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int?>("OriginalLanguageId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("OriginalText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -1928,6 +1978,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<string>("ReviewNote")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("SummaryReviewResult")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Text")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
@ -3933,12 +3986,18 @@ namespace RMuseum.Migrations
|
||||
|
||||
modelBuilder.Entity("RMuseum.Models.Ganjoor.GanjoorVerse", b =>
|
||||
{
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorLanguage", "Language")
|
||||
.WithMany()
|
||||
.HasForeignKey("LanguageId");
|
||||
|
||||
b.HasOne("RMuseum.Models.Ganjoor.GanjoorPoem", "Poem")
|
||||
.WithMany()
|
||||
.HasForeignKey("PoemId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Language");
|
||||
|
||||
b.Navigation("Poem");
|
||||
});
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
/// <summary>
|
||||
/// language id
|
||||
/// </summary>
|
||||
public int LanguageId { get; set; }
|
||||
public int? LanguageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// language
|
||||
|
||||
@ -3190,6 +3190,18 @@
|
||||
<member name="M:RMuseum.Migrations.RecitationInitialScore.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="T:RMuseum.Migrations.Task373Fields">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.Task373Fields.Up(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.Task373Fields.Down(Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="M:RMuseum.Migrations.Task373Fields.BuildTargetModel(Microsoft.EntityFrameworkCore.ModelBuilder)">
|
||||
<inheritdoc />
|
||||
</member>
|
||||
<member name="T:RMuseum.Models.Accounting.DonationExpenditure">
|
||||
<summary>
|
||||
donation expenditures
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "7.0.100"
|
||||
"version": "7.0.202"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user