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

Add an is_main_series column to abilities.

This commit is contained in:
Lynn "Zhorken" Vaughan 2013-07-04 03:50:34 -04:00
parent f34f6bb72a
commit e0beddc573
2 changed files with 227 additions and 225 deletions
pokedex/db

View file

@ -121,6 +121,8 @@ class Ability(TableBase):
info=dict(description="An identifier", format='identifier'))
generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False,
info=dict(description="The ID of the generation this ability was introduced in", detail=True))
is_main_series = Column(Boolean, nullable=False, index=True,
info=dict(description="True iff the ability exists in the main series."))
create_translation_table('ability_names', Ability, 'names',
relation_lazy='joined',