summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2012-05-14 22:47:57 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2012-05-14 22:47:57 -0700
commit71cc6fcf10b430cecd9f209a07a734bcce611e40 (patch)
tree3d075c60687a42a3e8ef22591f99b5e97f000a7f
parent3ad635377c544f7371647690f467f3be03b48047 (diff)
downloadkittystore-71cc6fcf10b430cecd9f209a07a734bcce611e40.tar.gz
kittystore-71cc6fcf10b430cecd9f209a07a734bcce611e40.tar.xz
kittystore-71cc6fcf10b430cecd9f209a07a734bcce611e40.zip
Change "full" field to LargeBinary as it's an exact copy of the message
-rw-r--r--kittystore/kittysamodel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kittystore/kittysamodel.py b/kittystore/kittysamodel.py
index 1e86905..dca2e66 100644
--- a/kittystore/kittysamodel.py
+++ b/kittystore/kittysamodel.py
@@ -20,6 +20,7 @@ from sqlalchemy import (
Column,
Integer,
DateTime,
+ LargeBinary,
String,
Text,
)
@@ -50,7 +51,7 @@ def get_table(table, metadata, create=False):
nullable=False),
Column('thread_id', String(150), nullable=False, index=True),
Column('references', Text),
- Column('full', Text), useexisting=True)
+ Column('full', LargeBinary), useexisting=True)
if create:
metadata.create_all()
return table