mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Make Pokemon.shape_id nullable
This commit is contained in:
parent
de27f2c282
commit
e9bc81707e
1 changed files with 2 additions and 2 deletions
|
@ -2035,7 +2035,7 @@ class PokemonSpecies(TableBase):
|
||||||
doc=u"ID of the species' evolution chain (a.k.a. family)")
|
doc=u"ID of the species' evolution chain (a.k.a. family)")
|
||||||
color_id = Column(Integer, ForeignKey('pokemon_colors.id'), nullable=False,
|
color_id = Column(Integer, ForeignKey('pokemon_colors.id'), nullable=False,
|
||||||
doc=u"ID of this Pokémon's Pokédex color, as used for a gimmick search function in the games.")
|
doc=u"ID of this Pokémon's Pokédex color, as used for a gimmick search function in the games.")
|
||||||
shape_id = Column(Integer, ForeignKey('pokemon_shapes.id'), nullable=False,
|
shape_id = Column(Integer, ForeignKey('pokemon_shapes.id'), nullable=True,
|
||||||
doc=u"ID of this Pokémon's body shape, as used for a gimmick search function in the games.")
|
doc=u"ID of this Pokémon's body shape, as used for a gimmick search function in the games.")
|
||||||
habitat_id = Column(Integer, ForeignKey('pokemon_habitats.id'), nullable=True,
|
habitat_id = Column(Integer, ForeignKey('pokemon_habitats.id'), nullable=True,
|
||||||
doc=u"ID of this Pokémon's habitat, as used for a gimmick search function in the games.")
|
doc=u"ID of this Pokémon's habitat, as used for a gimmick search function in the games.")
|
||||||
|
@ -2864,7 +2864,7 @@ PokemonSpecies.generation = relationship(Generation,
|
||||||
innerjoin=True,
|
innerjoin=True,
|
||||||
backref='species')
|
backref='species')
|
||||||
PokemonSpecies.shape = relationship(PokemonShape,
|
PokemonSpecies.shape = relationship(PokemonShape,
|
||||||
innerjoin=True,
|
innerjoin=False,
|
||||||
backref='species')
|
backref='species')
|
||||||
PokemonSpecies.pal_park = relationship(PalPark,
|
PokemonSpecies.pal_park = relationship(PalPark,
|
||||||
uselist=False,
|
uselist=False,
|
||||||
|
|
Loading…
Reference in a new issue