From 1cee46f0c0f5e43eaa99ca3b22b9e4eec0fc23c0 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 10 Mar 2013 13:56:42 -0700 Subject: [PATCH] Add a length back to color names; breaks MySQL otherwise. --- pokedex/db/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 7993d29..c3566cf 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -1595,12 +1595,12 @@ class PokemonColor(TableBase): __singlename__ = 'pokemon_color' id = Column(Integer, primary_key=True, nullable=False, autoincrement=False, 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')) create_translation_table('pokemon_color_names', PokemonColor, 'names', 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)), )