1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

hopefully fix issue with linked banned players

This commit is contained in:
RaidMax
2022-01-02 16:19:48 -06:00
parent 7541705f8a
commit 7b0fe1db7c
11 changed files with 4472 additions and 13 deletions

View File

@ -118,7 +118,7 @@ namespace Data.Context
ent.HasIndex(a => a.Name);
ent.Property(_alias => _alias.SearchableName).HasMaxLength(24);
ent.HasIndex(_alias => _alias.SearchableName);
ent.HasIndex(_alias => new {_alias.Name, _alias.IPAddress}).IsUnique();
ent.HasIndex(_alias => new {_alias.Name, _alias.IPAddress});
});
modelBuilder.Entity<EFMeta>(ent =>
@ -145,4 +145,4 @@ namespace Data.Context
base.OnModelCreating(modelBuilder);
}
}
}
}