mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 22:35:17 -04:00
Stats Page Overhaul (#4292)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
@@ -486,6 +486,12 @@ public sealed class DataContext : IdentityDbContext<AppUser, AppRole, int,
|
||||
entity.HasIndex(b => new { b.AppUserId, b.SeriesId })
|
||||
.HasDatabaseName("IX_AppUserBookmark_AppUserId_SeriesId");
|
||||
});
|
||||
|
||||
// Cover the date range + library filter on ActivityData
|
||||
builder.Entity<AppUserReadingSessionActivityData>()
|
||||
.HasIndex(a => new { a.StartTimeUtc, a.LibraryId })
|
||||
.HasDatabaseName("IX_ActivityData_StartTimeUtc_LibraryId");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user