From 99c8cce4e0f06bf5b84c757ce2b5120d176da5d5 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 27 Jan 2010 16:04:53 +0100 Subject: Don't allow cache text to be None. --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3