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

Add priority and target columns to the move changelog

In preparation for adding Gen V→VI changelog entries.

No data changes.
This commit is contained in:
Andrew Ekstedt 2016-09-25 11:04:21 -07:00
parent 5d6ac22974
commit ad73c9d43b
2 changed files with 89 additions and 83 deletions
pokedex/db

View file

@ -1262,6 +1262,10 @@ class MoveChangelog(TableBase):
doc=u"Prior base PP of the move, or NULL if unchanged")
accuracy = Column(SmallInteger, nullable=True,
doc=u"Prior accuracy of the move, or NULL if unchanged")
priority = Column(SmallInteger, nullable=True,
doc=u"Prior priority of the move, or NULL if unchanged")
target_id = Column(Integer, ForeignKey('move_targets.id'), nullable=True,
doc=u"Prior ID of the target, or NULL if unchanged")
effect_id = Column(Integer, ForeignKey('move_effects.id'), nullable=True,
doc=u"Prior ID of the effect, or NULL if unchanged")
effect_chance = Column(Integer, nullable=True,
@ -2560,6 +2564,8 @@ MoveChangelog.changed_in = relationship(VersionGroup,
backref='move_changelog')
MoveChangelog.move_effect = relationship(MoveEffect,
backref='move_changelog')
MoveChangelog.target = relationship(MoveTarget,
backref='move_changelog')
MoveChangelog.type = relationship(Type,
backref='move_changelog')