Fix typo in comment and remove useless ones

This commit is contained in:
Fernando Fernández
2021-09-07 17:53:35 +02:00
parent 154b7d8505
commit e5980f8686
9 changed files with 1 additions and 23 deletions

View File

@@ -12,14 +12,10 @@ namespace Jellyfin.Server.Implementations.ModelConfiguration
/// <inheritdoc/>
public void Configure(EntityTypeBuilder<User> builder)
{
// Collations
builder
.Property(user => user.Username)
.UseCollation("NOCASE");
// Delete behavior
builder
.HasOne(u => u.ProfileImage)
.WithOne()
@@ -52,8 +48,6 @@ namespace Jellyfin.Server.Implementations.ModelConfiguration
.WithOne()
.OnDelete(DeleteBehavior.Cascade);
// Indexes
builder
.HasIndex(entity => entity.Username)
.IsUnique();