Support null regional Pokédex for Colosseum/XD. #70

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-02-16 11:32:47 -05:00
parent 50b08d94d9
commit 2073fa5089
2 changed files with 4 additions and 4 deletions

View file

@ -10,5 +10,5 @@ id,generation_id,pokedex_id,order
9,4,6,11
10,4,7,12
11,5,8,13
12,3,4,7
13,3,4,8
12,3,,7
13,3,,8

1 id generation_id pokedex_id order
10 9 4 6 11
11 10 4 7 12
12 11 5 8 13
13 12 3 4 7
14 13 3 4 8

View file

@ -1591,8 +1591,8 @@ class VersionGroup(TableBase):
info=dict(description=u"This version group's unique ID."))
generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False,
info=dict(description=u"The ID of the generation the games in this group belong to."))
pokedex_id = Column(Integer, ForeignKey('pokedexes.id'), nullable=False,
info=dict(description=u"The ID of the regional Pokédex used in this version group."))
pokedex_id = Column(Integer, ForeignKey('pokedexes.id'), nullable=True,
info=dict(description=u"The ID of the regional Pokédex used in this version group. Null if not applicable."))
order = Column(Integer, nullable=True,
info=dict(description=u"Order for sorting. Almost by date of release, except similar versions are grouped together."))