docs: #324 db migration

This commit is contained in:
Hamid Reza Mohammadi 2022-05-23 13:02:34 +04:30
parent a7a01fa505
commit b42245a759
3 changed files with 4346 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
public partial class SectionInProbableMeters : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "SectionId",
table: "GanjoorPoemProbableMetres",
type: "int",
nullable: false,
defaultValue: 0);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SectionId",
table: "GanjoorPoemProbableMetres");
}
}
}

View File

@ -1290,6 +1290,9 @@ namespace RMuseum.Migrations
b.Property<int>("PoemId")
.HasColumnType("int");
b.Property<int>("SectionId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("PoemId");