summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'db.py')
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index b5c5a3f..9885b4e 100644
--- a/db.py
+++ b/db.py
@@ -16,7 +16,7 @@ class Paste(Base):
date = Column(DateTime, nullable = False)
syntax = Column(String)
title = Column(String)
- text = Column(Text)
+ text = Column(Text, nullable = False)
def __init__(self, hash, nick, date, syntax, title, text):
self.nick = nick