docs: #352 db migration
This commit is contained in:
parent
3817ec96b1
commit
c2ddf265e5
4413
RMuseum/Migrations/20220804051455_PoemGeoNewFields.Designer.cs
generated
Normal file
4413
RMuseum/Migrations/20220804051455_PoemGeoNewFields.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
37
RMuseum/Migrations/20220804051455_PoemGeoNewFields.cs
Normal file
37
RMuseum/Migrations/20220804051455_PoemGeoNewFields.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user