Added region names to the generations table.

This commit is contained in:
Eevee 2009-03-03 17:58:10 -08:00
parent 94c70f00d3
commit 7315189b10
2 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
id,name id,name,main_region
1,Generation I 1,Generation I,Kanto
2,Generation II 2,Generation II,Johto
3,Generation III 3,Generation III,Hoenn
4,Generation IV 4,Generation IV,Sinnoh

1 id name main_region
2 1 Generation I Kanto
3 2 Generation II Johto
4 3 Generation III Hoenn
5 4 Generation IV Sinnoh

View file

@ -44,6 +44,7 @@ class Generation(TableBase):
__tablename__ = 'generations' __tablename__ = 'generations'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
name = Column(Unicode(16), nullable=False) name = Column(Unicode(16), nullable=False)
main_region = Column(Unicode(16), nullable=False)
class GrowthRate(TableBase): class GrowthRate(TableBase):
__tablename__ = 'growth_rates' __tablename__ = 'growth_rates'