Reverted PK fix for patron as it's causing migration to fail

This commit is contained in:
Kwoth
2023-01-09 02:43:18 +01:00
parent 719f62a0ac
commit fcd016aed3
10 changed files with 88 additions and 10645 deletions

View File

@@ -431,8 +431,7 @@ public abstract class NadekoContext : DbContext
modelBuilder.Entity<PatronUser>(pu =>
{
pu.HasIndex(x => x.UniquePlatformUserId).IsUnique();
pu.HasKey(x => x.Id);
pu.HasIndex(x => x.UserId).IsUnique(false);
pu.HasKey(x => x.UserId);
});
// quotes are per user id