mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Add an index to CompileJob directory names
This commit is contained in:
@@ -115,6 +115,8 @@ namespace Tgstation.Server.Host.Models
|
||||
revInfo.HasOne(x => x.PrimaryTestMerge).WithOne(x => x.PrimaryRevisionInformation).OnDelete(DeleteBehavior.SetNull);
|
||||
revInfo.HasIndex(x => x.CommitSha).IsUnique();
|
||||
|
||||
modelBuilder.Entity<CompileJob>().HasIndex(x => x.DirectoryName);
|
||||
|
||||
var chatChannel = modelBuilder.Entity<ChatChannel>();
|
||||
chatChannel.HasIndex(x => new { x.ChatSettingsId, x.IrcChannel }).IsUnique();
|
||||
chatChannel.HasIndex(x => new { x.ChatSettingsId, x.DiscordChannelId }).IsUnique();
|
||||
|
||||
Reference in New Issue
Block a user