docs: #352 db migration

This commit is contained in:
Hamid Reza Mohammadi 2022-08-04 09:46:55 +04:30
parent 3817ec96b1
commit c2ddf265e5
3 changed files with 4456 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
public partial class PoemGeoNewFields : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IgnoreInCategory",
table: "PoemGeoDateTags",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "VerifiedDate",
table: "PoemGeoDateTags",
type: "bit",
nullable: false,
defaultValue: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IgnoreInCategory",
table: "PoemGeoDateTags");
migrationBuilder.DropColumn(
name: "VerifiedDate",
table: "PoemGeoDateTags");
}
}
}

View File

@ -1931,6 +1931,9 @@ namespace RMuseum.Migrations
b.Property<int>("CoupletIndex")
.HasColumnType("int");
b.Property<bool>("IgnoreInCategory")
.HasColumnType("bit");
b.Property<int?>("LocationId")
.HasColumnType("int");
@ -1949,6 +1952,9 @@ namespace RMuseum.Migrations
b.Property<int>("PoemId")
.HasColumnType("int");
b.Property<bool>("VerifiedDate")
.HasColumnType("bit");
b.HasKey("Id");
b.HasIndex("LocationId");