File Created Date (#1434)
* Capture date when Kavita creates a MangaFile so we can show the date on the UI. * On startup, exit early for migration directory if it's a fresh install and we have migrations to run but no settings stored yet. * Blur summaries should apply when there isn't any read more collapsable * Fixed custom theme files not loading. * Cleaned up the logic for displaying the manga file date
This commit is contained in:
parent
79b8df1112
commit
7a026e9497
11 changed files with 1653 additions and 6 deletions
1599
API/Data/Migrations/20220814134725_MangaFileCreatedDate.Designer.cs
generated
Normal file
1599
API/Data/Migrations/20220814134725_MangaFileCreatedDate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
27
API/Data/Migrations/20220814134725_MangaFileCreatedDate.cs
Normal file
27
API/Data/Migrations/20220814134725_MangaFileCreatedDate.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace API.Data.Migrations
|
||||
{
|
||||
public partial class MangaFileCreatedDate : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "Created",
|
||||
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: "Created",
|
||||
table: "MangaFile");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -525,6 +525,9 @@ namespace API.Data.Migrations
|
|||
b.Property<int>("ChapterId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTime>("Created")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("FilePath")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue