Fix some i18n schema issues when running under a Real Database™.

This commit is contained in:
Eevee 2011-03-12 18:06:16 -08:00
parent 2f222ca973
commit 482ca207cb

View file

@ -28,7 +28,7 @@ The singular-name property returns the name in the default language, English.
import collections import collections
from sqlalchemy import Column, ForeignKey, MetaData, PrimaryKeyConstraint, Table from sqlalchemy import Column, ForeignKey, MetaData, PrimaryKeyConstraint, Table, UniqueConstraint
from sqlalchemy.ext.declarative import ( from sqlalchemy.ext.declarative import (
declarative_base, declared_attr, DeclarativeMeta, declarative_base, declared_attr, DeclarativeMeta,
) )
@ -689,6 +689,11 @@ class MoveEffectChangelog(TableBase):
effect = ProseColumn(markdown.MarkdownColumn(512), plural='effects', nullable=False, effect = ProseColumn(markdown.MarkdownColumn(512), plural='effects', nullable=False,
info=dict(description="A description of the old behavior", format='markdown')) info=dict(description="A description of the old behavior", format='markdown'))
__table_args__ = (
UniqueConstraint(effect_id, changed_in_version_group_id),
{},
)
class MoveFlag(TableBase): class MoveFlag(TableBase):
u"""Maps a move flag to a move u"""Maps a move flag to a move
""" """