diff options
-rw-r--r-- | db.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ class Cache(Base): paste_hash = Column(String, ForeignKey('paste.hash'), index = True) paste = relation(Paste, primaryjoin = paste_hash == Paste.hash, lazy = False) syntax_name = Column(String) - text = Column(Text) + text = Column(Text, nullable = False) def __init__(self, hash, syntax_name, text): self.paste_hash = hash |