docs: #306 changing db migration
This commit is contained in:
parent
14374ffc8e
commit
a38065651d
@ -12,7 +12,7 @@ using RMuseum.DbContext;
|
||||
namespace RMuseum.Migrations
|
||||
{
|
||||
[DbContext(typeof(RMuseumDbContext))]
|
||||
[Migration("20220402144857_Sections")]
|
||||
[Migration("20220410162939_Sections")]
|
||||
partial class Sections
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@ -1232,12 +1232,18 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("GanjoorMetreId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("HtmlText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Index")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Number")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PlainText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -1529,6 +1535,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("CoupletIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("ForthSectionIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -8,6 +8,12 @@ namespace RMuseum.Migrations
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ForthSectionIndex",
|
||||
table: "GanjoorVerses",
|
||||
type: "int",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SecondSectionIndex",
|
||||
table: "GanjoorVerses",
|
||||
@ -39,7 +45,9 @@ namespace RMuseum.Migrations
|
||||
SectionType = table.Column<int>(type: "int", nullable: false),
|
||||
VerseType = table.Column<int>(type: "int", nullable: false),
|
||||
GanjoorMetreId = table.Column<int>(type: "int", nullable: true),
|
||||
RhymeLetters = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
RhymeLetters = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
PlainText = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
HtmlText = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
@ -83,6 +91,10 @@ namespace RMuseum.Migrations
|
||||
migrationBuilder.DropTable(
|
||||
name: "GanjoorPoemSections");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ForthSectionIndex",
|
||||
table: "GanjoorVerses");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SecondSectionIndex",
|
||||
table: "GanjoorVerses");
|
||||
@ -1230,12 +1230,18 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("GanjoorMetreId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("HtmlText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Index")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Number")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("PlainText")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
@ -1527,6 +1533,9 @@ namespace RMuseum.Migrations
|
||||
b.Property<int?>("CoupletIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int?>("ForthSectionIndex")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("PoemId")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user