projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved CSV import speed by several orders of magnitude.
[zzz-pokedex.git]
/
pokedex
/
db
/
tables.py
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
096e678
..
1de7e7b
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-127,10
+127,11
@@
class Generation(TableBase):
main_region = Column(Unicode(16), nullable=False)
class GrowthRate(TableBase):
main_region = Column(Unicode(16), nullable=False)
class GrowthRate(TableBase):
+ """`formula` is written in LaTeX math notation."""
__tablename__ = 'growth_rates'
id = Column(Integer, primary_key=True, nullable=False)
__tablename__ = 'growth_rates'
id = Column(Integer, primary_key=True, nullable=False)
- name = Column(Unicode(
16
), nullable=False)
- formula = Column(Unicode(
255
), nullable=False)
+ name = Column(Unicode(
20
), nullable=False)
+ formula = Column(Unicode(
500
), nullable=False)
class Item(TableBase):
__tablename__ = 'items'
class Item(TableBase):
__tablename__ = 'items'