Skip to content

Commit

Permalink
Removed unique Name constraint for nodes (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriFS authored Jul 25, 2023
1 parent b78af8a commit 21212ae
Show file tree
Hide file tree
Showing 4 changed files with 1,202 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasForeignKey(cor => cor.DestNodeId);

modelBuilder.Entity<Node>().HasIndex(x => x.PubKey).IsUnique();
modelBuilder.Entity<Node>().HasIndex(x => x.Name).IsUnique();
modelBuilder.Entity<Wallet>().HasIndex(x => new {x.InternalWalletSubDerivationPath, x.InternalWalletMasterFingerprint}).IsUnique();

//There should be only one Liquidity Rule per Channel
Expand Down
Loading

0 comments on commit 21212ae

Please sign in to comment.