1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Drop Generation.canonical_pokedex.

Generation VI doesn't have a canonical pokedex (it has three). We don't
use this anywhere and as far as i can tell we never have. We can revive
it in another form if and when we find we need it.

Conflicts:
	pokedex/data/csv/generations.csv
	pokedex/db/tables.py
This commit is contained in:
Andrew Ekstedt 2013-10-18 17:49:41 -07:00
parent 56aca8e9c3
commit 38ce28e48f
2 changed files with 7 additions and 11 deletions
pokedex/db

View file

@ -862,8 +862,6 @@ class Generation(TableBase):
info=dict(description="A numeric ID"))
main_region_id = Column(Integer, ForeignKey('regions.id'), nullable=False,
info=dict(description="ID of the region this generation's main games take place in"))
canonical_pokedex_id = Column(Integer, ForeignKey('pokedexes.id'), nullable=False,
info=dict(description=u"ID of the Pokédex this generation's main games use by default"))
identifier = Column(Unicode(16), nullable=False,
info=dict(description=u'An identifier', format='identifier'))
@ -2273,8 +2271,6 @@ Experience.growth_rate = relationship(GrowthRate,
backref='experience_table')
Generation.canonical_pokedex = relationship(Pokedex,
backref='canonical_for_generation')
Generation.versions = relationship(Version,
secondary=VersionGroup.__table__,
innerjoin=True)