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 <noreply@anthropic.com>
This commit is contained in:
Josh Creek
2026-06-16 14:00:10 +01:00
parent 955cba1aaa
commit 069f7f41fa
@@ -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;