docs: #327 #363 db migrations

This commit is contained in:
Hamid Reza Mohammadi 2023-02-03 14:15:56 +03:30
parent 93cd519975
commit cae1630bdb
3 changed files with 4487 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class NewVerseSectionLang : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "NewVerse",
table: "GanjoorVerseVOrderText",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "NewVerseResult",
table: "GanjoorVerseVOrderText",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "Language",
table: "GanjoorPoemSections",
type: "nvarchar(max)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "NewVerse",
table: "GanjoorVerseVOrderText");
migrationBuilder.DropColumn(
name: "NewVerseResult",
table: "GanjoorVerseVOrderText");
migrationBuilder.DropColumn(
name: "Language",
table: "GanjoorPoemSections");
}
}
}

View File

@ -1332,6 +1332,9 @@ namespace RMuseum.Migrations
b.Property<int>("Index")
.HasColumnType("int");
b.Property<string>("Language")
.HasColumnType("nvarchar(max)");
b.Property<int>("Number")
.HasColumnType("int");
@ -1889,6 +1892,12 @@ namespace RMuseum.Migrations
b.Property<int>("MarkForDeleteResult")
.HasColumnType("int");
b.Property<bool>("NewVerse")
.HasColumnType("bit");
b.Property<int>("NewVerseResult")
.HasColumnType("int");
b.Property<string>("OriginalText")
.HasColumnType("nvarchar(max)");