mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Fixed cleanup migration if there are waifus which don't have a corresponding entry in DiscordUser
This commit is contained in:
		@@ -16,6 +16,7 @@ namespace NadekoBot.Migrations
 | 
			
		||||
            migrationBuilder.Sql("DELETE FROM FilteredWord WHERE GuildConfigId NOT IN (SELECT Id from GuildConfigs)");
 | 
			
		||||
            migrationBuilder.Sql("DELETE FROM FilterChannelId WHERE GuildConfigId NOT IN (SELECT Id from GuildConfigs)");
 | 
			
		||||
            migrationBuilder.Sql("DELETE FROM CommandCooldown WHERE GuildConfigId NOT IN (SELECT Id from GuildConfigs)");
 | 
			
		||||
            migrationBuilder.Sql("DELETE FROM WaifuInfo where WaifuId not in (SELECT Id from DiscordUser);");
 | 
			
		||||
            
 | 
			
		||||
            migrationBuilder.DropColumn(
 | 
			
		||||
                name: "ChannelCreated",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user