mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Fix some i18n schema issues when running under a Real Database™.
This commit is contained in:
parent
2f222ca973
commit
482ca207cb
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue