Merged in solos/sphinx (pull request #235)

fix node_id String length
This commit is contained in:
Takayuki Shimizukawa 2014-05-05 16:14:44 +09:00
commit c84ce436b6

View File

@ -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",