From ce23a82e5092fec123aabf3f4b0555640c96e5df Mon Sep 17 00:00:00 2001 From: Eevee Date: Mon, 3 Aug 2009 22:59:39 -0400 Subject: [PATCH] Added Move.effect and VersionGroup.generation relations. --- pokedex/db/tables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 1de7e7b..d2a0e77 100644 --- 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') +Move.effect = relation(MoveEffect, backref='moves') 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') + +VersionGroup.generation = relation(Generation, backref='version_groups')