mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Added habitat sprites. Renamed flavor to flavor_text.
pokemon_flavor_text.flavor -> pokemon_flavor_text.flavor_text
This commit is contained in:
parent
e212038be0
commit
774690026c
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
pokemon_id,version_id,flavor
|
pokemon_id,version_id,flavor_text
|
||||||
1,1,A strange seed was planted in its back at birth. The plant sprouts and grows with this Pokemon.
|
1,1,A strange seed was planted in its back at birth. The plant sprouts and grows with this Pokemon.
|
||||||
1,3,"It can go for days without eating a single morsel. In the bulb on its back, it stores energy."
|
1,3,"It can go for days without eating a single morsel. In the bulb on its back, it stores energy."
|
||||||
1,4,The seed on its back is filled with nutrients. The seed grows steadily larger as its body grows.
|
1,4,The seed on its back is filled with nutrients. The seed grows steadily larger as its body grows.
|
||||||
|
|
|
|
@ -133,7 +133,7 @@ class PokemonFlavorText(TableBase):
|
||||||
__tablename__ = 'pokemon_flavor_text'
|
__tablename__ = 'pokemon_flavor_text'
|
||||||
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False)
|
pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False)
|
||||||
version_id = Column(Integer, ForeignKey('versions.id'), primary_key=True, nullable=False)
|
version_id = Column(Integer, ForeignKey('versions.id'), primary_key=True, nullable=False)
|
||||||
flavor = Column(Unicode(255), nullable=False)
|
flavor_text = Column(Unicode(255), nullable=False)
|
||||||
|
|
||||||
class PokemonName(TableBase):
|
class PokemonName(TableBase):
|
||||||
__tablename__ = 'pokemon_names'
|
__tablename__ = 'pokemon_names'
|
||||||
|
@ -199,6 +199,7 @@ Pokemon.egg_groups = relation(EggGroup, secondary=PokemonEggGroup.__table__,
|
||||||
order_by=PokemonEggGroup.egg_group_id,
|
order_by=PokemonEggGroup.egg_group_id,
|
||||||
backref='pokemon')
|
backref='pokemon')
|
||||||
Pokemon.evolution_chain = relation(EvolutionChain, backref='pokemon')
|
Pokemon.evolution_chain = relation(EvolutionChain, backref='pokemon')
|
||||||
|
Pokemon.flavor_text = relation(PokemonFlavorText, backref='pokemon')
|
||||||
Pokemon.foreign_names = relation(PokemonName, backref='pokemon')
|
Pokemon.foreign_names = relation(PokemonName, backref='pokemon')
|
||||||
Pokemon.generation = relation(Generation, backref='pokemon')
|
Pokemon.generation = relation(Generation, backref='pokemon')
|
||||||
Pokemon.shape = relation(PokemonShape, backref='pokemon')
|
Pokemon.shape = relation(PokemonShape, backref='pokemon')
|
||||||
|
@ -207,6 +208,8 @@ Pokemon.types = relation(Type, secondary=PokemonType.__table__)
|
||||||
|
|
||||||
PokemonDexNumber.generation = relation(Generation)
|
PokemonDexNumber.generation = relation(Generation)
|
||||||
|
|
||||||
|
PokemonFlavorText.version = relation(Version)
|
||||||
|
|
||||||
PokemonName.language = relation(Language)
|
PokemonName.language = relation(Language)
|
||||||
|
|
||||||
PokemonStat.stat = relation(Stat)
|
PokemonStat.stat = relation(Stat)
|
||||||
|
|
Loading…
Reference in a new issue