docs: #277 adding the db migration

This commit is contained in:
Hamid Reza Mohammadi 2022-01-20 12:05:51 +03:30
parent 5396a3a162
commit e0040dde42
5 changed files with 3714 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
public partial class PrivateNoteForBookmarks : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PrivateNote",
table: "GanjoorUserBookmarks",
type: "nvarchar(max)",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PrivateNote",
table: "GanjoorUserBookmarks");
}
}
}

View File

@ -1219,6 +1219,9 @@ namespace RMuseum.Migrations
b.Property<int>("PoemId")
.HasColumnType("int");
b.Property<string>("PrivateNote")
.HasColumnType("nvarchar(max)");
b.Property<Guid>("UserId")
.HasColumnType("uniqueidentifier");

View File

@ -54,5 +54,10 @@ namespace RMuseum.Models.Ganjoor
/// DateTime
/// </summary>
public DateTime DateTime { get; set; }
/// <summary>
/// private note for bookmark
/// </summary>
public string PrivateNote { get; set; }
}
}

View File

@ -6477,6 +6477,11 @@
DateTime
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.GanjoorUserBookmark.PrivateNote">
<summary>
private note for bookmark
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.GanjoorUserPoemVisit">
<summary>
ganjoor user history track item (stored by his or her choice)