Fix admin log indices. (#7920)

This commit is contained in:
Pieter-Jan Briers
2022-05-04 16:18:55 +02:00
committed by GitHub
parent faec39da2b
commit fc119befca
8 changed files with 2521 additions and 0 deletions

View File

@@ -120,9 +120,13 @@ namespace Content.Server.Database.Migrations.Postgres
b.HasKey("Id", "RoundId")
.HasName("PK_admin_log");
b.HasIndex("Date");
b.HasIndex("Message")
.HasAnnotation("Npgsql:TsVectorConfig", "english");
NpgsqlIndexBuilderExtensions.HasMethod(b.HasIndex("Message"), "GIN");
b.HasIndex("RoundId")
.HasDatabaseName("IX_admin_log_round_id");