diff --git a/src/NadekoBot/Db/NadekoContext.cs b/src/NadekoBot/Db/NadekoContext.cs index 86bc6f0e3..d8aa9e560 100644 --- a/src/NadekoBot/Db/NadekoContext.cs +++ b/src/NadekoBot/Db/NadekoContext.cs @@ -66,10 +66,8 @@ namespace NadekoBot.Services.Database } #if DEBUG - public static readonly LoggerFactory _debugLoggerFactory = - new LoggerFactory(new[] { - new Microsoft.Extensions.Logging.Debug.DebugLoggerProvider() - }); + public static readonly ILoggerFactory _debugLoggerFactory = + LoggerFactory.Create(x => x.AddConsole()); protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseLoggerFactory(_debugLoggerFactory); diff --git a/src/NadekoBot/Migrations/20210707002343_cleanup.cs b/src/NadekoBot/Migrations/20210707002343_cleanup.cs index 520cf60d9..d21ff3cee 100644 --- a/src/NadekoBot/Migrations/20210707002343_cleanup.cs +++ b/src/NadekoBot/Migrations/20210707002343_cleanup.cs @@ -11,6 +11,8 @@ namespace NadekoBot.Migrations name: "FK_GuildConfigs_Permission_RootPermissionId", table: "GuildConfigs"); + migrationBuilder.Sql("UPDATE Permission SET NextId = NULL;"); + migrationBuilder.DropTable( name: "Permission");