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

Support null pre-D/P damage class for ??? and Shadow.

Rather than marking them "non-damaging".
This commit is contained in:
Lynn "Zhorken" Vaughan 2011-02-06 13:31:20 -05:00
parent f7a222ed1d
commit d6a96f5ee9
2 changed files with 4 additions and 4 deletions
pokedex/db

View file

@ -1264,8 +1264,8 @@ class Type(TableBase):
info=dict(description=u"An arbitrary 3-letter abbreviation of this type.", format='plaintext')) # XXX: Or is it not arbitrary?
generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False,
info=dict(description=u"The ID of the generation this type first appeared in."))
damage_class_id = Column(Integer, ForeignKey('move_damage_classes.id'), nullable=False,
info=dict(description=u"The ID of the damage class this type's moves had before Generation IV."))
damage_class_id = Column(Integer, ForeignKey('move_damage_classes.id'), nullable=True,
info=dict(description=u"The ID of the damage class this type's moves had before Generation IV, null if not applicable (e.g. ???)."))
class TypeName(TableBase):
u"""An official non-English name of an elemental type."""