From f631f16690bca3962f540c0e0bf1cb7645bb60fc Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 7 Aug 2024 17:45:25 +0000 Subject: [PATCH] fix: fixed one of the migrations which was preventing some bots from starting --- src/NadekoBot/Migrations/MigrationQueries.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NadekoBot/Migrations/MigrationQueries.cs b/src/NadekoBot/Migrations/MigrationQueries.cs index 0decf3c2f..d0ee1fff8 100644 --- a/src/NadekoBot/Migrations/MigrationQueries.cs +++ b/src/NadekoBot/Migrations/MigrationQueries.cs @@ -49,5 +49,9 @@ left join guildconfigs on reactionrolemessage.guildconfigid = guildconfigs.id;") builder.Sql($""" DELETE FROM "DelMsgOnCmdChannel" WHERE "GuildConfigId" is NULL; """); + + builder.Sql(""" + DELETE FROM "WarningPunishment" WHERE "GuildConfigId" NOT IN (SELECT "Id" from "GuildConfigs"); + """); } } \ No newline at end of file