From e26e2a7404f970cde822017a3ecfa82cd77aed62 Mon Sep 17 00:00:00 2001 From: Toastie Date: Thu, 8 Aug 2024 13:48:43 +1200 Subject: [PATCH] fixed one of the migrations which was preventing some bots from starting --- src/EllieBot/Migrations/MigrationQueries.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/EllieBot/Migrations/MigrationQueries.cs b/src/EllieBot/Migrations/MigrationQueries.cs index 3cd32d2..a20f4a3 100644 --- a/src/EllieBot/Migrations/MigrationQueries.cs +++ b/src/EllieBot/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