Fix admin log indices. (#7920)
This commit is contained in:
committed by
GitHub
parent
faec39da2b
commit
fc119befca
@@ -91,6 +91,9 @@ namespace Content.Server.Database
|
||||
.Property(log => log.Id)
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
modelBuilder.Entity<AdminLog>()
|
||||
.HasIndex(log => log.Date);
|
||||
|
||||
modelBuilder.Entity<AdminLogPlayer>()
|
||||
.HasOne(player => player.Player)
|
||||
.WithMany(player => player.AdminLogs)
|
||||
|
||||
Reference in New Issue
Block a user