diff options
author | solos <lxl1217@gmail.com> | 2014-04-19 13:57:12 +0800 |
---|---|---|
committer | solos <lxl1217@gmail.com> | 2014-04-19 13:57:12 +0800 |
commit | 1e7022c973e0e78044e6364e0648c2d79ba61279 (patch) | |
tree | 8815288501e0c7bdb617b36c54bf9db755d43a6b /sphinx/websupport/storage/sqlalchemy_db.py | |
parent | 397e3773c1e7190deb8e45e32a69d542d62add3b (diff) | |
download | sphinx-git-1e7022c973e0e78044e6364e0648c2d79ba61279.tar.gz |
fix node_id String length
fix node_id String length
Diffstat (limited to 'sphinx/websupport/storage/sqlalchemy_db.py')
-rw-r--r-- | sphinx/websupport/storage/sqlalchemy_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/websupport/storage/sqlalchemy_db.py b/sphinx/websupport/storage/sqlalchemy_db.py index 7baf8830a..afabeadea 100644 --- a/sphinx/websupport/storage/sqlalchemy_db.py +++ b/sphinx/websupport/storage/sqlalchemy_db.py @@ -131,7 +131,7 @@ class Comment(Base): proposal_diff = Column(Text) path = Column(String(256), index=True) - node_id = Column(String, ForeignKey(db_prefix + 'nodes.id')) + node_id = Column(String(32), ForeignKey(db_prefix + 'nodes.id')) node = relation(Node, backref="comments") votes = relation(CommentVote, backref="comment", |