Remove useless encounter_slot_conditions table. #297

This commit is contained in:
Eevee 2011-01-27 20:27:42 -08:00
parent 8a74d34f47
commit 570719499d
2 changed files with 0 additions and 43 deletions

View file

@ -1,29 +0,0 @@
encounter_slot_id,encounter_condition_id
1,1
2,1
3,2
4,2
5,3
6,3
9,4
10,4
11,3
12,3
33,1
33,2
34,1
34,2
35,2
35,5
36,2
36,5
37,2
37,5
38,2
38,5
39,2
40,2
41,2
42,2
43,2
44,2
1 encounter_slot_id encounter_condition_id
2 1 1
3 2 1
4 3 2
5 4 2
6 5 3
7 6 3
8 9 4
9 10 4
10 11 3
11 12 3
12 33 1
13 33 2
14 34 1
15 34 2
16 35 2
17 35 5
18 36 2
19 36 5
20 37 2
21 37 5
22 38 2
23 38 5
24 39 2
25 40 2
26 41 2
27 42 2
28 43 2
29 44 2

View file

@ -283,15 +283,6 @@ class EncounterSlot(TableBase):
rarity = Column(Integer, nullable=False,
info=dict(description="The chance of the encounter as a percentage"))
class EncounterSlotCondition(TableBase):
u"""A condition that affects an encounter slot.
"""
__tablename__ = 'encounter_slot_conditions'
encounter_slot_id = Column(Integer, ForeignKey('encounter_slots.id'), primary_key=True, nullable=False, autoincrement=False,
info=dict(description="The ID of the encounter slot"))
encounter_condition_id = Column(Integer, ForeignKey('encounter_conditions.id'), primary_key=True, nullable=False, autoincrement=False,
info=dict(description="The ID of the encounter condition"))
class EvolutionChain(TableBase):
u"""A family of Pokémon that are linked by evolution
"""
@ -1379,11 +1370,6 @@ EncounterConditionValueMap.condition_value = relation(EncounterConditionValue,
EncounterSlot.terrain = relation(EncounterTerrain, backref='slots')
EncounterSlot.version_group = relation(VersionGroup)
EncounterSlot.condition_map = relation(EncounterSlotCondition, backref='slot')
EncounterSlot.conditions = association_proxy('condition_map', 'condition')
EncounterSlotCondition.condition = relation(EncounterCondition,
backref='slot_map')
EvolutionChain.growth_rate = relation(GrowthRate, backref='evolution_chains')
EvolutionChain.baby_trigger_item = relation(Item, backref='evolution_chains')
EvolutionChain.pokemon = relation(Pokemon, order_by=Pokemon.order, back_populates='evolution_chain')