From 29856ad8bf84858312a73a621aec9a9742515144 Mon Sep 17 00:00:00 2001 From: Eevee Date: Thu, 24 Mar 2011 17:17:24 -0700 Subject: [PATCH] Whoops; preserve column order. --- pokedex/db/tables.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index ae3cb99..aadd245 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -233,10 +233,10 @@ class ContestEffect(TableBase): info=dict(description="The base number of hearts the user's opponent loses")) create_translation_table('contest_effect_prose', ContestEffect, 'prose', - effect = Column(Unicode(255), nullable=False, - info=dict(description="A detailed description of the effect", format='plaintext')), flavor_text = Column(Unicode(64), nullable=False, info=dict(description="The in-game description of this effect", official=True, format='gametext')), + effect = Column(Unicode(255), nullable=False, + info=dict(description="A detailed description of the effect", format='plaintext')), ) class ContestType(TableBase): @@ -250,12 +250,12 @@ class ContestType(TableBase): info=dict(description="An identifier", format='identifier')) create_translation_table('contest_type_texts', ContestType, 'names', + name = Column(Unicode(6), nullable=False, index=True, + info=dict(description="The name", format='plaintext', official=True)), flavor = Column(Unicode(6), nullable=False, info=dict(description="The name of the corresponding Berry flavor", official=True, format='plaintext')), color = Column(Unicode(6), nullable=False, info=dict(description=u"The name of the corresponding Pokéblock color", official=True, format='plaintext')), - name = Column(Unicode(6), nullable=False, index=True, - info=dict(description="The name", format='plaintext', official=True)), ) class EggGroup(TableBase): @@ -1464,10 +1464,10 @@ class PokemonShape(TableBase): info=dict(description=u"An identifier", format='identifier')) create_translation_table('pokemon_shape_prose', PokemonShape, 'prose', - awesome_name = Column(Unicode(16), nullable=False, - info=dict(description=u"A splendiferous name of the body shape", format='plaintext')), name = Column(Unicode(24), nullable=False, index=True, info=dict(description="The name", format='plaintext', official=False)), + awesome_name = Column(Unicode(16), nullable=False, + info=dict(description=u"A splendiferous name of the body shape", format='plaintext')), ) class PokemonStat(TableBase): -- 2.7.4