mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add B/W locations. #375
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:
parent
dbb293e727
commit
7b7c0addde
4 changed files with 371 additions and 1 deletions
pokedex/db
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue