Possible fix for permission drop table

This commit is contained in:
Kwoth
2021-08-09 21:18:48 +02:00
parent d67f0b1850
commit 5990430d5a
2 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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");