PokeAPI / pokedex

PokeAPI's fork for adding gen-8 data.
https://github.com/PokeAPI/pokedex/tree/master-pokeapi/pokeapi
MIT License
43 stars 38 forks source link

Database will not load without tweaks to pokedex/db/tables.py #120

Open 404AndyNotFound opened 2 years ago

404AndyNotFound commented 2 years ago

To get the data to load into mysql without invalid integer value errors I had to change the following fields to nullable. These columns have blank values in the CSVs and try to enter a blank string into the DB without these columns allowing null.

Line 1663: base_experience (Pokemon table) Line 1665: order (Pokemon table) Line 2038: shape_id (PokemonSpecies table) Line 2046: base_happiness (PokemonSpecies table) Line 2050: hatch_counter (PokemonSpecies table)