Add VersionGroup.identifier

This commit is contained in:
Andrew Ekstedt 2012-10-18 14:59:54 -07:00
parent 4d84fec42e
commit c4d360e0ec
2 changed files with 17 additions and 15 deletions

View file

@ -1,15 +1,15 @@
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

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

View file

@ -2057,6 +2057,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,