mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Possible fix for permission drop table
This commit is contained in:
@@ -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);
|
||||
|
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user