mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Switch pokemon_game_indices to version_id; add B/W 2 indices.
version_id rather than version_group_id for the sake of FR/LG Deoxys. It seems a little silly but magical's on board with this decision too.
This commit is contained in:
parent
c5418ea344
commit
1d3e5af093
2 changed files with 7678 additions and 1311 deletions
File diff suppressed because it is too large
Load diff
|
@ -1731,10 +1731,10 @@ class PokemonGameIndex(TableBase):
|
||||||
__tablename__ = 'pokemon_game_indices'
|
__tablename__ = 'pokemon_game_indices'
|
||||||
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, autoincrement=False, nullable=False,
|
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, autoincrement=False, nullable=False,
|
||||||
info=dict(description=u"Database ID of the Pokémon"))
|
info=dict(description=u"Database ID of the Pokémon"))
|
||||||
generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, autoincrement=False, nullable=False,
|
version_id = Column(Integer, ForeignKey('versions.id'), primary_key=True, autoincrement=False, nullable=False,
|
||||||
info=dict(description=u"Database ID of the generation"))
|
info=dict(description=u"Database ID of the version"))
|
||||||
game_index = Column(Integer, nullable=False,
|
game_index = Column(Integer, nullable=False,
|
||||||
info=dict(description=u"Internal ID the generation's games use for the Pokémon"))
|
info=dict(description=u"Internal ID the version's games use for the Pokémon"))
|
||||||
|
|
||||||
class PokemonHabitat(TableBase):
|
class PokemonHabitat(TableBase):
|
||||||
u"""The habitat of a Pokémon, as given in the FireRed/LeafGreen version Pokédex
|
u"""The habitat of a Pokémon, as given in the FireRed/LeafGreen version Pokédex
|
||||||
|
|
Loading…
Reference in a new issue