Add identifiers for version groups.

This commit is contained in:
Andrew Ekstedt 2012-10-18 14:59:54 -07:00
parent 94f120421c
commit e151162a8b
2 changed files with 18 additions and 16 deletions

View file

@ -1,16 +1,16 @@
id,generation_id,pokedex_id,order
1,1,2,1
2,1,2,2
3,2,3,3
4,2,3,4
5,3,4,5
6,3,4,6
7,3,2,9
8,4,5,10
9,4,6,11
10,4,7,12
11,5,8,13
12,3,,7
13,3,,8
14,5,9,14
15,6,12,15
id,identifier,generation_id,pokedex_id,order
1,red-blue,1,2,1
2,yellow,1,2,2
3,gold-silver,2,3,3
4,crystal,2,3,4
5,ruby-sapphire,3,4,5
6,emerald,3,4,6
7,firered-leafgreen,3,2,9
8,diamond-pearl,4,5,10
9,platinum,4,6,11
10,heartgold-soulsilver,4,7,12
11,black-white,5,8,13
12,colosseum,3,,7
13,xd,3,,8
14,black2-white2,5,9,14
15,x-y,6,12,15

1 id identifier generation_id pokedex_id order
2 1 red-blue 1 2 1
3 2 yellow 1 2 2
4 3 gold-silver 2 3 3
5 4 crystal 2 3 4
6 5 ruby-sapphire 3 4 5
7 6 emerald 3 4 6
8 7 firered-leafgreen 3 2 9
9 8 diamond-pearl 4 5 10
10 9 platinum 4 6 11
11 10 heartgold-soulsilver 4 7 12
12 11 black-white 5 8 13
13 12 colosseum 3 7
14 13 xd 3 8
15 14 black2-white2 5 9 14
16 15 x-y 6 12 15

View file

@ -2076,6 +2076,8 @@ class VersionGroup(TableBase):
__tablename__ = 'version_groups'
id = Column(Integer, primary_key=True, nullable=False,
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,
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,