veekun_pokedex/pokedex/data/csv/types.csv
Eevee 634ef3ed1e Fixed a slew of foriegn key import problems. #29
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.
2009-07-03 23:12:13 -04:00

252 B

1idnameabbreviation
21normalNRM
32fightingFGT
43flyingFLY
54poisonPSN
65groundGRN
76rockRCK
87bugBUG
98ghostGST
109steelSTL
1110fireFIR
1211waterWTR
1312grassGRS
1413electricELE
1514psychicPSY
1615iceICE
1716dragonDRG
1817darkDAR
1918????????