diff --git a/src/Escalated/Data/EscalatedDbContext.cs b/src/Escalated/Data/EscalatedDbContext.cs index 4b7dcc9..ef98272 100644 --- a/src/Escalated/Data/EscalatedDbContext.cs +++ b/src/Escalated/Data/EscalatedDbContext.cs @@ -325,7 +325,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.Entity(e => { e.ToTable($"{prefix}import_source_maps"); - e.HasIndex(m => new { m.ImportJobId, m.EntityType, m.SourceId }).IsUnique(); + e.HasIndex(m => new { m.ImportJobId, m.EntityType, m.SourceId }) + .IsUnique() + .HasDatabaseName("IX_import_source_maps_unique_source"); }); modelBuilder.Entity(e =>