docs: #277 adding the db migration
This commit is contained in:
parent
5396a3a162
commit
e0040dde42
3676
RMuseum/Migrations/20220120083213_PrivateNoteForBookmarks.Designer.cs
generated
Normal file
3676
RMuseum/Migrations/20220120083213_PrivateNoteForBookmarks.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
25
RMuseum/Migrations/20220120083213_PrivateNoteForBookmarks.cs
Normal file
25
RMuseum/Migrations/20220120083213_PrivateNoteForBookmarks.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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");
|
||||
|
||||
|
||||
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user