When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications.

This commit is contained in:
Joseph Milazzo 2021-03-23 17:28:48 -05:00
parent f77b0ec552
commit f85918b5bf
7 changed files with 803 additions and 4 deletions

View file

@ -0,0 +1,25 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace API.Data.Migrations
{
public partial class LastModifiedOnMangaFiles : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "LastModified",
table: "MangaFile",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastModified",
table: "MangaFile");
}
}
}