1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Added language codes alongside the country codes.

Language codes are ISO 639-1; country codes are ISO 3166-1 alpha-2.

The country codes are important to keep for flags and stuff, I guess,
but reporting the language code as a short form for the language is
more correct.

Gonna see if I can do that, I guess.  I added the language codes mostly
just because I was adding languages.
This commit is contained in:
Zhorken 2010-03-15 23:24:29 -04:00
parent 1fcb06d64a
commit 419f65c90c
2 changed files with 10 additions and 7 deletions
pokedex/db

View file

@ -163,6 +163,7 @@ class Item(TableBase):
class Language(TableBase):
__tablename__ = 'languages'
id = Column(Integer, primary_key=True, nullable=False)
iso639 = Column(Unicode(2), nullable=False)
iso3166 = Column(Unicode(2), nullable=False)
name = Column(Unicode(16), nullable=False)