Added .autopublish command

This commit is contained in:
Kwoth
2022-09-16 21:49:50 +02:00
parent 005fd7b8c6
commit 1ca6f6dc5c
18 changed files with 10541 additions and 5 deletions

View File

@@ -464,6 +464,14 @@ public abstract class NadekoContext : DbContext
});
#endregion
#region AutoPublish
modelBuilder.Entity<AutoPublishChannel>(apc => apc
.HasIndex(x => x.GuildId)
.IsUnique());
#endregion
}
#if DEBUG