mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add identifiers for version groups.
This commit is contained in:
parent
94f120421c
commit
e151162a8b
2 changed files with 18 additions and 16 deletions
|
@ -1,16 +1,16 @@
|
||||||
id,generation_id,pokedex_id,order
|
id,identifier,generation_id,pokedex_id,order
|
||||||
1,1,2,1
|
1,red-blue,1,2,1
|
||||||
2,1,2,2
|
2,yellow,1,2,2
|
||||||
3,2,3,3
|
3,gold-silver,2,3,3
|
||||||
4,2,3,4
|
4,crystal,2,3,4
|
||||||
5,3,4,5
|
5,ruby-sapphire,3,4,5
|
||||||
6,3,4,6
|
6,emerald,3,4,6
|
||||||
7,3,2,9
|
7,firered-leafgreen,3,2,9
|
||||||
8,4,5,10
|
8,diamond-pearl,4,5,10
|
||||||
9,4,6,11
|
9,platinum,4,6,11
|
||||||
10,4,7,12
|
10,heartgold-soulsilver,4,7,12
|
||||||
11,5,8,13
|
11,black-white,5,8,13
|
||||||
12,3,,7
|
12,colosseum,3,,7
|
||||||
13,3,,8
|
13,xd,3,,8
|
||||||
14,5,9,14
|
14,black2-white2,5,9,14
|
||||||
15,6,12,15
|
15,x-y,6,12,15
|
||||||
|
|
|
|
@ -2076,6 +2076,8 @@ class VersionGroup(TableBase):
|
||||||
__tablename__ = 'version_groups'
|
__tablename__ = 'version_groups'
|
||||||
id = Column(Integer, primary_key=True, nullable=False,
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
info=dict(description=u"This version group's unique ID."))
|
info=dict(description=u"This version group's unique ID."))
|
||||||
|
identifier = Column(Unicode(20), nullable=False, unique=True,
|
||||||
|
info=dict(description=u"This version group's unique textual identifier."))
|
||||||
generation_id = Column(Integer, ForeignKey('generations.id'), nullable=False,
|
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."))
|
info=dict(description=u"The ID of the generation the games in this group belong to."))
|
||||||
pokedex_id = Column(Integer, ForeignKey('pokedexes.id'), nullable=True,
|
pokedex_id = Column(Integer, ForeignKey('pokedexes.id'), nullable=True,
|
||||||
|
|
Loading…
Reference in a new issue