Book Reading Progress Enhancement (#259)
* Added book reader reading direction preference * Adds a new marker to the AppUserProgress to capture nearest anchor for resuming scroll point when reading books. Refactored bookmark api to return a BookmarkDto which includes this new data.
This commit is contained in:
parent
c12879cda9
commit
4910f1d1d0
6 changed files with 925 additions and 7 deletions
23
API/Data/Migrations/20210603212429_BookScrollIdProgress.cs
Normal file
23
API/Data/Migrations/20210603212429_BookScrollIdProgress.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace API.Data.Migrations
|
||||
{
|
||||
public partial class BookScrollIdProgress : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BookScrollId",
|
||||
table: "AppUserProgresses",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BookScrollId",
|
||||
table: "AppUserProgresses");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue