fixed one of the migrations which was preventing some bots from starting

This commit is contained in:
Toastie 2024-08-08 13:48:43 +12:00
parent c61f3f1433
commit e26e2a7404
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -49,5 +49,9 @@ left join guildconfigs on reactionrolemessage.guildconfigid = guildconfigs.id;")
builder.Sql($""" builder.Sql($"""
DELETE FROM "DelMsgOnCmdChannel" WHERE "GuildConfigId" is NULL; DELETE FROM "DelMsgOnCmdChannel" WHERE "GuildConfigId" is NULL;
"""); """);
builder.Sql("""
DELETE FROM "WarningPunishment" WHERE "GuildConfigId" NOT IN (SELECT "Id" from "GuildConfigs");
""");
} }
} }