1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Add B/W locations.

English and Japanese. Woo!

The text dump contained a bunch of duplicate location names (possibly
for the Entralink?).  I've merged them in the locations table, but
location_game_indices still has the duplicates—that is, a location can
now have multiple game_index values in one generation (necessitating a
small schema change).
This commit is contained in:
a_magical_me 2011-04-03 05:12:09 -07:00
parent dbb293e727
commit 7b7c0addde
4 changed files with 371 additions and 1 deletions
pokedex/db

View file

@ -668,7 +668,7 @@ class LocationGameIndex(TableBase):
info=dict(description="Database ID of the locaion"))
generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False, primary_key=True,
info=dict(description="ID of the generation this entry to"))
game_index = Column(Integer, nullable=False,
game_index = Column(Integer, nullable=False, primary_key=True, autoincrement=False,
info=dict(description="Internal game ID of the location"))
class Machine(TableBase):