docs: #324 db migration
This commit is contained in:
parent
a7a01fa505
commit
b42245a759
4317
RMuseum/Migrations/20220523083110_SectionInProbableMeters.Designer.cs
generated
Normal file
4317
RMuseum/Migrations/20220523083110_SectionInProbableMeters.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
26
RMuseum/Migrations/20220523083110_SectionInProbableMeters.cs
Normal file
26
RMuseum/Migrations/20220523083110_SectionInProbableMeters.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user