Added Move.effect and VersionGroup.generation relations.

This commit is contained in:
Eevee 2009-08-03 22:59:39 -04:00
parent e8ed55c297
commit ce23a82e50

View file

@ -377,6 +377,7 @@ EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
LocationArea.location = relation(Location, backref='areas') LocationArea.location = relation(Location, backref='areas')
Move.type = relation(Type, backref='moves') Move.type = relation(Type, backref='moves')
Move.effect = relation(MoveEffect, backref='moves')
Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__, Pokemon.abilities = relation(Ability, secondary=PokemonAbility.__table__,
order_by=PokemonAbility.slot, order_by=PokemonAbility.slot,
@ -433,3 +434,5 @@ Type.target_efficacies = relation(TypeEfficacy,
Version.generation = relation(Generation, secondary=VersionGroup.__table__, Version.generation = relation(Generation, secondary=VersionGroup.__table__,
backref='versions') backref='versions')
Version.version_group = relation(VersionGroup, backref='versions') Version.version_group = relation(VersionGroup, backref='versions')
VersionGroup.generation = relation(Generation, backref='version_groups')