mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-06-05 14:25:17 -04:00
Custom keybinds, Default language per Library, and bugfixes (#4162)
Co-authored-by: Joseph Milazzo <josephmajora@gmail.com>
This commit is contained in:
@@ -155,6 +155,9 @@ public sealed class DataContext : IdentityDbContext<AppUser, AppRole, int,
|
||||
builder.Entity<Library>()
|
||||
.Property(b => b.EnableMetadata)
|
||||
.HasDefaultValue(true);
|
||||
builder.Entity<Library>()
|
||||
.Property(l => l.DefaultLanguage)
|
||||
.HasDefaultValue(string.Empty);
|
||||
|
||||
builder.Entity<Chapter>()
|
||||
.Property(b => b.WebLinks)
|
||||
@@ -293,6 +296,12 @@ public sealed class DataContext : IdentityDbContext<AppUser, AppRole, int,
|
||||
.HasColumnType("TEXT")
|
||||
.HasDefaultValue(new List<HighlightSlot>());
|
||||
|
||||
builder.Entity<AppUserPreferences>()
|
||||
.Property(p => p.CustomKeyBinds)
|
||||
.HasJsonConversion([])
|
||||
.HasColumnType("TEXT")
|
||||
.HasDefaultValue(new Dictionary<KeyBindTarget, IList<KeyBind>>());
|
||||
|
||||
builder.Entity<AppUser>()
|
||||
.Property(user => user.IdentityProvider)
|
||||
.HasDefaultValue(IdentityProvider.Kavita);
|
||||
|
||||
Reference in New Issue
Block a user