mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-12 18:43:45 +00:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user