mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add a length back to color names; breaks MySQL otherwise.
This commit is contained in:
parent
a33d0fe3f3
commit
1cee46f0c0
1 changed files with 2 additions and 2 deletions
|
@ -1595,12 +1595,12 @@ class PokemonColor(TableBase):
|
||||||
__singlename__ = 'pokemon_color'
|
__singlename__ = 'pokemon_color'
|
||||||
id = Column(Integer, primary_key=True, nullable=False, autoincrement=False,
|
id = Column(Integer, primary_key=True, nullable=False, autoincrement=False,
|
||||||
info=dict(description=u"ID of the Pokémon"))
|
info=dict(description=u"ID of the Pokémon"))
|
||||||
identifier = Column(Unicode, nullable=False,
|
identifier = Column(Unicode(100), nullable=False,
|
||||||
info=dict(description=u"An identifier", format='identifier'))
|
info=dict(description=u"An identifier", format='identifier'))
|
||||||
|
|
||||||
create_translation_table('pokemon_color_names', PokemonColor, 'names',
|
create_translation_table('pokemon_color_names', PokemonColor, 'names',
|
||||||
relation_lazy='joined',
|
relation_lazy='joined',
|
||||||
name = Column(Unicode, nullable=False, index=True,
|
name = Column(Unicode(100), nullable=False, index=True,
|
||||||
info=dict(description="The name", format='plaintext', official=True)),
|
info=dict(description="The name", format='plaintext', official=True)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue