mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Added identifiers for move meta categories.
This commit is contained in:
parent
8e2ad429d9
commit
8de33be206
2 changed files with 18 additions and 16 deletions
|
@ -1,15 +1,15 @@
|
||||||
id
|
id,identifier
|
||||||
0
|
0,damage
|
||||||
1
|
1,ailment
|
||||||
2
|
2,net-good-stats
|
||||||
3
|
3,heal
|
||||||
4
|
4,damage+ailment
|
||||||
5
|
5,swagger
|
||||||
6
|
6,damage+lower
|
||||||
7
|
7,damage+raise
|
||||||
8
|
8,damage+heal
|
||||||
9
|
9,ohko
|
||||||
10
|
10,whole-field-effect
|
||||||
11
|
11,field-effect
|
||||||
12
|
12,force-switch
|
||||||
13
|
13,unique
|
||||||
|
|
|
|
@ -938,7 +938,7 @@ class MoveMetaAilment(TableBase):
|
||||||
__singlename__ = 'move_meta_ailment'
|
__singlename__ = 'move_meta_ailment'
|
||||||
id = Column(Integer, primary_key=True, nullable=False, autoincrement=False,
|
id = Column(Integer, primary_key=True, nullable=False, autoincrement=False,
|
||||||
info=dict(description="A numeric ID"))
|
info=dict(description="A numeric ID"))
|
||||||
identifier = Column(Unicode(24), nullable=False,
|
identifier = Column(Unicode(24), nullable=False, index=True, unique=True,
|
||||||
info=dict(description="An identifier", format='identifier'))
|
info=dict(description="An identifier", format='identifier'))
|
||||||
|
|
||||||
create_translation_table('move_meta_ailment_names', MoveMetaAilment, 'names',
|
create_translation_table('move_meta_ailment_names', MoveMetaAilment, 'names',
|
||||||
|
@ -953,6 +953,8 @@ class MoveMetaCategory(TableBase):
|
||||||
__singlename__ = 'move_meta_category'
|
__singlename__ = 'move_meta_category'
|
||||||
id = Column(Integer, primary_key=True, nullable=False,
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
info=dict(description="A numeric ID"))
|
info=dict(description="A numeric ID"))
|
||||||
|
identifier = Column(Unicode(32), nullable=False, index=True, unique=True,
|
||||||
|
info=dict(description="An identifier", format='identifier'))
|
||||||
|
|
||||||
create_translation_table('move_meta_category_prose', MoveMetaCategory, 'prose',
|
create_translation_table('move_meta_category_prose', MoveMetaCategory, 'prose',
|
||||||
relation_lazy='joined',
|
relation_lazy='joined',
|
||||||
|
|
Loading…
Reference in a new issue