Add an index to CompileJob directory names

This commit is contained in:
Cyberboss
2018-08-09 14:29:39 -04:00
parent 20351d0740
commit 117e81abe1
@@ -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();