mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
634ef3ed1e
Curse's type_id was 0, which is bogus; this has been fixed by creating a real ????? type. Fourth-gen moves all had zero as a contest effect id, which was also bogus. Pokémon 494 and 495 were junk and have been scrapped entirely. pokemon_form_groups's description column was too short. pokedex's connect() now takes kwargs passed to sessionmaker(). A more major change: some tables, like pokemon, are self-referential and contain rows that refer to rows later in the table (for example, Pikachu evolves from Pichu, which has a higher id). At the moment such a row is loaded, the foreign key is thus bogus. I solved this by turning on autocommit and wrapping add() in a try block, then attempting to readd every failed row again after the rest of the table is finished. Slows the import down a bit, but makes it work perfectly with foreign key checks on. |
||
---|---|---|
.. | ||
abilities.csv | ||
contest_effects.csv | ||
egg_groups.csv | ||
encounter_condition_groups.csv | ||
encounter_conditions.csv | ||
encounter_type_slots.csv | ||
encounter_types.csv | ||
encounters.csv | ||
evolution_chains.csv | ||
evolution_methods.csv | ||
generations.csv | ||
growth_rates.csv | ||
languages.csv | ||
location_areas.csv | ||
locations.csv | ||
move_effects.csv | ||
move_targets.csv | ||
moves.csv | ||
pokemon.csv | ||
pokemon_abilities.csv | ||
pokemon_dex_numbers.csv | ||
pokemon_egg_groups.csv | ||
pokemon_flavor_text.csv | ||
pokemon_form_groups.csv | ||
pokemon_form_sprites.csv | ||
pokemon_names.csv | ||
pokemon_shapes.csv | ||
pokemon_stats.csv | ||
pokemon_types.csv | ||
stats.csv | ||
type_efficacy.csv | ||
types.csv | ||
version_groups.csv | ||
versions.csv |