From 069f7f41fa1f4339042c2f7db27fef437b331ae8 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 16 Jun 2026 14:00:10 +0100 Subject: [PATCH] fix(data): add missing female form entries to pokemon_origin_games Female Sneasel was absent from all 5 Gen 2 games (Gold, Silver, Crystal, HeartGold, SoulSilver) and Female Indeedee was absent from Sword, despite their base forms being present. Both found during QA of the form dex game-scope feature. Co-Authored-By: Claude Sonnet 4.6 --- ...616000000_fix_female_form_origin_games.sql | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 supabase/migrations/20260616000000_fix_female_form_origin_games.sql diff --git a/supabase/migrations/20260616000000_fix_female_form_origin_games.sql b/supabase/migrations/20260616000000_fix_female_form_origin_games.sql new file mode 100644 index 0000000..6564459 --- /dev/null +++ b/supabase/migrations/20260616000000_fix_female_form_origin_games.sql @@ -0,0 +1,22 @@ +-- Fix missing female form entries in pokemon_origin_games. +-- +-- Female Sneasel was absent from all Gen 2 games despite the base form being present. +-- Female Indeedee was absent from Sword despite the base form being present. +-- Both were identified by comparing pokemon_origin_games coverage between base forms +-- and their female counterparts. + +INSERT INTO pokemon_origin_games ("pokemonId", "gameId") +SELECT p.id, g.id +FROM pokemon p +CROSS JOIN games g +WHERE p.pokemon = 'Sneasel' AND p.form = 'Female' + AND g."displayName" IN ('Gold', 'Silver', 'Crystal', 'Heart Gold', 'Soul Silver') +ON CONFLICT DO NOTHING; + +INSERT INTO pokemon_origin_games ("pokemonId", "gameId") +SELECT p.id, g.id +FROM pokemon p +CROSS JOIN games g +WHERE p.pokemon = 'Indeedee' AND p.form = 'Female' + AND g."displayName" = 'Sword' +ON CONFLICT DO NOTHING;