projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b3b3285
)
Added Move.effect and VersionGroup.generation relations.
author
Eevee
<git@veekun.com>
Tue, 4 Aug 2009 02:59:39 +0000
(22:59 -0400)
committer
Eevee
<git@veekun.com>
Tue, 4 Aug 2009 02:59:39 +0000
(22:59 -0400)
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
1de7e7b
..
d2a0e77
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-377,6
+377,7
@@
EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
LocationArea.location = relation(Location, backref='areas')
Move.type = relation(Type, backref='moves')
LocationArea.location = relation(Location, backref='areas')
Move.type = relation(Type, backref='moves')
+Move.effect = relation(MoveEffect, backref='moves')
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
order_by=PokemonAbility.slot,
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
order_by=PokemonAbility.slot,
@@
-433,3
+434,5
@@
Type.target_efficacies = relation(TypeEfficacy,
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
backref='versions')
Version.version_group = relation(VersionGroup, backref='versions')
Version.generation = relation(Generation, secondary=VersionGroup.__table__,
backref='versions')
Version.version_group = relation(VersionGroup, backref='versions')
+
+VersionGroup.generation = relation(Generation, backref='version_groups')