mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Implement move effect changelog; misc move fixes.
This commit is contained in:
parent
9b9223e3a3
commit
42142f90a0
5 changed files with 37 additions and 19 deletions
pokedex/db
|
@ -589,6 +589,16 @@ class MoveEffect(TableBase):
|
|||
effect = Column(Unicode(5120), nullable=False,
|
||||
info=dict(description="A detailed description of the effect", format='plaintext'))
|
||||
|
||||
class MoveEffectChangelog(TableBase):
|
||||
"""History of changes to move effects across main game versions."""
|
||||
__tablename__ = 'move_effect_changelog'
|
||||
effect_id = Column(Integer, ForeignKey('move_effects.id'), primary_key=True, nullable=False,
|
||||
info=dict(description="The ID of the effect that changed"))
|
||||
changed_in_version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False,
|
||||
info=dict(description="The ID of the version group in which the effect changed"))
|
||||
effect = Column(markdown.MarkdownColumn(255), nullable=False,
|
||||
info=dict(description="A description of the old behavior", format='markdown'))
|
||||
|
||||
class MoveFlag(TableBase):
|
||||
u"""Maps a move flag to a move
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue