summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index 9885b4e..1c76ad2 100644
--- a/db.py
+++ b/db.py
@@ -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