projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8df2929
)
Fix some i18n schema issues when running under a Real Databaseā¢.
author
Eevee
<git@veekun.com>
Sun, 13 Mar 2011 02:06:16 +0000
(18:06 -0800)
committer
Eevee
<git@veekun.com>
Sun, 13 Mar 2011 22:45:07 +0000
(15:45 -0700)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
76bd753
..
f8afa9b
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-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 (
declarative_base, declared_attr, DeclarativeMeta,
)
from sqlalchemy.ext.declarative import (
declarative_base, declared_attr, DeclarativeMeta,
)
@@
-689,6
+689,11
@@
class MoveEffectChangelog(TableBase):
effect = ProseColumn(markdown.MarkdownColumn(512), plural='effects', nullable=False,
info=dict(description="A description of the old behavior", format='markdown'))
effect = ProseColumn(markdown.MarkdownColumn(512), plural='effects', nullable=False,
info=dict(description="A description of the old behavior", format='markdown'))
+ __table_args__ = (
+ UniqueConstraint(effect_id, changed_in_version_group_id),
+ {},
+ )
+
class MoveFlag(TableBase):
u"""Maps a move flag to a move
"""
class MoveFlag(TableBase):
u"""Maps a move flag to a move
"""