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
|
#if DEBUG
|
||||||
public static readonly LoggerFactory _debugLoggerFactory =
|
public static readonly ILoggerFactory _debugLoggerFactory =
|
||||||
new LoggerFactory(new[] {
|
LoggerFactory.Create(x => x.AddConsole());
|
||||||
new Microsoft.Extensions.Logging.Debug.DebugLoggerProvider()
|
|
||||||
});
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
optionsBuilder.UseLoggerFactory(_debugLoggerFactory);
|
optionsBuilder.UseLoggerFactory(_debugLoggerFactory);
|
||||||
|
@@ -11,6 +11,8 @@ namespace NadekoBot.Migrations
|
|||||||
name: "FK_GuildConfigs_Permission_RootPermissionId",
|
name: "FK_GuildConfigs_Permission_RootPermissionId",
|
||||||
table: "GuildConfigs");
|
table: "GuildConfigs");
|
||||||
|
|
||||||
|
migrationBuilder.Sql("UPDATE Permission SET NextId = NULL;");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "Permission");
|
name: "Permission");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user