* feature: Added .stickyroles command, untested

* ci: possible fix
This commit is contained in:
Kwoth
2024-04-23 15:45:09 +00:00
parent 74690c73d6
commit 08d8da25cd
20 changed files with 11093 additions and 12 deletions

View File

@@ -60,6 +60,8 @@ public abstract class NadekoContext : DbContext
public DbSet<PatronQuota> PatronQuotas { get; set; }
public DbSet<StreamOnlineMessage> StreamOnlineMessages { get; set; }
public DbSet<StickyRole> StickyRoles { get; set; }
#region Mandatory Provider-Specific Values
@@ -481,6 +483,16 @@ public abstract class NadekoContext : DbContext
.IsUnique());
#endregion
#region Sticky Roles
modelBuilder.Entity<StickyRole>(sr => sr.HasIndex(x => new
{
x.GuildId,
x.UserId
}).IsUnique());
#endregion
}
#if DEBUG