mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-15 12:03:44 +00:00
fix(#91): correct form game coverage and fix canonical sort order
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
-- Add Scarlet and Violet to all Vivillon pattern forms.
|
||||
--
|
||||
-- All 18 pattern forms are obtainable in Scarlet/Violet via the Pokémon Portal
|
||||
-- Vivillon Points mechanic. The seed data only recorded X/Y (the origin games),
|
||||
-- which was wrong given the goal is to show all games where a form is catchable.
|
||||
--
|
||||
-- Fancy (Event) already has Scarlet/Violet.
|
||||
-- Pokéball (Event) was X/Y only and is not included here.
|
||||
|
||||
INSERT INTO pokemon_origin_games ("pokemonId", "gameId")
|
||||
SELECT p.id, g.id
|
||||
FROM pokemon p
|
||||
CROSS JOIN games g
|
||||
WHERE p.pokemon = 'Vivillon'
|
||||
AND p.form NOT IN ('Fancy (Event)', 'Pokeball (Event)')
|
||||
AND g."displayName" IN ('Scarlet', 'Violet')
|
||||
ON CONFLICT DO NOTHING;
|
||||
Reference in New Issue
Block a user