X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/1fded58d8ba2c00841c0c6e297385b8d0f3a7af4..94718259a763ab76944abf5aa26ab77b6da6c9e8:/pokedex/db/tables.py?ds=inline diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 491bfd2..c2cf297 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -185,7 +185,8 @@ class LocationArea(TableBase): class LocationAreaEncounterRate(TableBase): __tablename__ = 'location_area_encounter_rates' location_area_id = Column(Integer, ForeignKey('location_areas.id'), primary_key=True, nullable=False, autoincrement=False) - encounter_type_id = Column(Integer, ForeignKey('encounter_terrain.id'), primary_key=True, nullable=False, autoincrement=False) + encounter_terrain_id = Column(Integer, ForeignKey('encounter_terrain.id'), primary_key=True, nullable=False, autoincrement=False) + version_id = Column(Integer, ForeignKey('versions.id'), primary_key=True, autoincrement=False) rate = Column(Integer, nullable=True) class Machine(TableBase):