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:
Lynn "Zhorken" Vaughan 2012-11-03 03:46:58 -04:00
parent c5418ea344
commit 1d3e5af093
2 changed files with 7678 additions and 1311 deletions

File diff suppressed because it is too large Load diff

View file

@ -1731,10 +1731,10 @@ class PokemonGameIndex(TableBase):
__tablename__ = 'pokemon_game_indices'
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, autoincrement=False, nullable=False,
info=dict(description=u"Database ID of the Pokémon"))
generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, autoincrement=False, nullable=False,
info=dict(description=u"Database ID of the generation"))
version_id = Column(Integer, ForeignKey('versions.id'), primary_key=True, autoincrement=False, nullable=False,
info=dict(description=u"Database ID of the version"))
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):
u"""The habitat of a Pokémon, as given in the FireRed/LeafGreen version Pokédex